Fix machine selection

This commit is contained in:
Eelco Dolstra 2015-06-19 17:45:26 +02:00
parent a0c4120232
commit a0eff6fc15

View file

@ -887,9 +887,9 @@ void State::dispatcher()
float ta = roundf(a->currentJobs / a->speedFactor);
float tb = roundf(b->currentJobs / b->speedFactor);
return
ta != tb ? ta > tb :
ta != tb ? ta < tb :
a->speedFactor != b->speedFactor ? a->speedFactor > b->speedFactor :
a->maxJobs > b->maxJobs;
a->currentJobs > b->currentJobs;
});
/* Find a machine with a free slot and find a step to run