Commit 80c12727 authored by EYRAUD-DUBOIS Lionel's avatar EYRAUD-DUBOIS Lionel

Bugfix

parent d4282aec
......@@ -14,8 +14,11 @@ double OnlineGeneric::compute(Instance &instance, SchedAction *action) {
instance.getRevDependencies();
readyTasks = priority_queue<taskAndReadyTime, vector<taskAndReadyTime>, greater<taskAndReadyTime>>();
finishTimes.clear();
finishTimes.resize(instance.totalWorkers, 0);
readyTimes.clear();
readyTimes.resize(instance.nbTasks, -1);
nbScheduledPredecessors.clear();
nbScheduledPredecessors.resize(instance.nbTasks, 0);
for(int t = 0; t < instance.nbTasks; ++t) {
......
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