formatted code
This commit is contained in:
parent
373a437bae
commit
45d84f9485
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ func NewPistonCapper(tasks []def.Task, ignoreWatts bool) *PistonCapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
// check whether task fits the offer or not.
|
// check whether task fits the offer or not.
|
||||||
func (s *PistonCapper) takeOffer(offerWatts float64, offerCPU float64, offerRAM float64, totalWatts float64, totalCPU float64,
|
func (s *PistonCapper) takeOffer(offerWatts float64, offerCPU float64, offerRAM float64,
|
||||||
totalRAM float64, task def.Task) bool {
|
totalWatts float64, totalCPU float64, totalRAM float64, task def.Task) bool {
|
||||||
if (s.ignoreWatts || (offerWatts >= (totalWatts + task.Watts))) &&
|
if (s.ignoreWatts || (offerWatts >= (totalWatts + task.Watts))) &&
|
||||||
(offerCPU >= (totalCPU + task.CPU)) &&
|
(offerCPU >= (totalCPU + task.CPU)) &&
|
||||||
(offerRAM >= (totalRAM + task.RAM)) {
|
(offerRAM >= (totalRAM + task.RAM)) {
|
||||||
|
|
Reference in a new issue