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
|
||||
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))) {
|
||||
return true
|
||||
}
|
||||
|
|
Reference in a new issue