formatted code

This commit is contained in:
Pradyumna Kaushik 2016-12-20 16:28:03 -05:00 committed by Renan DelValle
parent 373a437bae
commit 45d84f9485

View file

@ -70,8 +70,8 @@ func NewPistonCapper(tasks []def.Task, ignoreWatts bool) *PistonCapper {
}
// check whether task fits the offer or not.
func (s *PistonCapper) takeOffer(offerWatts float64, offerCPU float64, offerRAM float64, totalWatts float64, totalCPU float64,
totalRAM float64, task def.Task) bool {
func (s *PistonCapper) takeOffer(offerWatts float64, offerCPU float64, offerRAM float64,
totalWatts float64, totalCPU float64, totalRAM float64, task def.Task) bool {
if (s.ignoreWatts || (offerWatts >= (totalWatts + task.Watts))) &&
(offerCPU >= (totalCPU + task.CPU)) &&
(offerRAM >= (totalRAM + task.RAM)) {