fixed naming convensions to be camel cased. Reformatted the code.

This commit is contained in:
Pradyumna Kaushik 2016-11-28 17:18:33 -05:00 committed by Renan DelValle
parent 978d51135b
commit 6aa849bbe7
6 changed files with 147 additions and 147 deletions

View file

@ -304,8 +304,8 @@ func (s *ProactiveClusterwideCapFCFS) ResourceOffers(driver sched.SchedulerDrive
log.Println(err)
}
log.Printf("Starting on [%s]\n", offer.GetHostname())
to_schedule := []*mesos.TaskInfo{s.newTask(offer, task)}
driver.LaunchTasks([]*mesos.OfferID{offer.Id}, to_schedule, defaultFilter)
toSchedule := []*mesos.TaskInfo{s.newTask(offer, task)}
driver.LaunchTasks([]*mesos.OfferID{offer.Id}, toSchedule, defaultFilter)
log.Printf("Inst: %d", *task.Instances)
*task.Instances--
if *task.Instances <= 0 {