Commit f869bed8 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

minor bug fix.


Former-commit-id: 952636a70831fc78e0b66148bfcb825faad74062
parent 8ca4c0ea
......@@ -479,7 +479,8 @@ void scheduler_ranktasks ( struct scheduler *s ) {
t->maxdepth = 0;
t->weight = 0;
for ( j = 0 ; j < t->nr_unlock_tasks ; j++ ) {
t->weight = t->unlock_tasks[j]->weight;
if ( t->unlock_tasks[j]->weight > t->weight )
t->weight = t->unlock_tasks[j]->weight;
if ( t->unlock_tasks[j]->maxdepth > t->maxdepth )
t->maxdepth = t->unlock_tasks[j]->maxdepth;
}
......
Supports Markdown
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