formatted
This commit is contained in:
parent
ef8a315e90
commit
c18dd0fa70
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ func (s *BinPackSortedWattsSortedOffers) takeOffer(offer *mesos.Offer, task def.
|
||||||
// Error in determining wattsConsideration
|
// Error in determining wattsConsideration
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
if (offerCPU >= (totalCPU + task.CPU))&& (offerRAM >= (totalRAM + task.RAM)) &&
|
if (offerCPU >= (totalCPU + task.CPU)) && (offerRAM >= (totalRAM + task.RAM)) &&
|
||||||
(!s.wattsAsAResource || (offerWatts >= (totalWatts + wattsConsideration))) {
|
(!s.wattsAsAResource || (offerWatts >= (totalWatts + wattsConsideration))) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue