Commit 488994fc authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

More consistent behavior for ERLS

parent d798481b
......@@ -21,7 +21,7 @@ int OnlineERLS::assignTask(int task, double now) {
}
double OnlineERLS::compute(Instance &instance, SchedAction *action) {
largestGroup = instance.nbWorkers[0] > instance.nbWorkers[1] ? 0 : 1;
largestGroup = instance.nbWorkers[0] >= instance.nbWorkers[1] ? 0 : 1;
threshold = sqrt(instance.nbWorkers[largestGroup] / instance.nbWorkers[1-largestGroup]);
return OnlineGeneric::compute(instance, action);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment