From c18dd0fa70ba9c28d06c7aceaaa4703b46e4a068 Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Mon, 27 Feb 2017 19:03:36 -0500 Subject: [PATCH] formatted --- schedulers/binPackSortedWattsSortedOffers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedulers/binPackSortedWattsSortedOffers.go b/schedulers/binPackSortedWattsSortedOffers.go index a1b4e18..6cc67bb 100644 --- a/schedulers/binPackSortedWattsSortedOffers.go +++ b/schedulers/binPackSortedWattsSortedOffers.go @@ -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 }