formatted files

This commit is contained in:
Pradyumna Kaushik 2017-02-11 00:05:42 -05:00
parent ec78480067
commit 13479e03a4
4 changed files with 21 additions and 21 deletions

View file

@ -279,7 +279,9 @@ func (s *BinPackedPistonCapper) ResourceOffers(driver sched.SchedulerDriver, off
} }
// Don't take offer if it doesn't match our task's host requirement // Don't take offer if it doesn't match our task's host requirement
if offerUtils.HostMismatch(*offer.Hostname, task.Host) {continue} if offerUtils.HostMismatch(*offer.Hostname, task.Host) {
continue
}
for *task.Instances > 0 { for *task.Instances > 0 {
// Does the task fit // Does the task fit

View file

@ -1,9 +1,9 @@
package schedulers package schedulers
import ( import (
"bitbucket.org/sunybingcloud/electron/constants"
"fmt" "fmt"
"log" "log"
"bitbucket.org/sunybingcloud/electron/constants"
) )
func coLocated(tasks map[string]bool) { func coLocated(tasks map[string]bool) {
@ -24,4 +24,3 @@ func hostToPowerClass(hostName string) string {
} }
return "" return ""
} }

View file

@ -45,4 +45,3 @@ func OrderedKeys(plist PairList) ([]string, error) {
} }
return orderedKeys, nil return orderedKeys, nil
} }