From 98af7a0b01e38fefa8670bc1d4a41de0679a9b8c Mon Sep 17 00:00:00 2001 From: Aidan Chalk <d74ksy@cosma-e.cosma> Date: Thu, 10 Dec 2015 12:44:46 +0000 Subject: [PATCH] Actually commit the correct version of qsched.c --- src/qsched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qsched.c b/src/qsched.c index d816baf..1cdf53a 100644 --- a/src/qsched.c +++ b/src/qsched.c @@ -2409,8 +2409,7 @@ for(i = 0; i < count; i++) /*Find the parents. */ num_parents = 0; int max = wait_init[gettaskindex(t->id, s)]; -// for(j = i-1; j >= 0 && num_parents < max; j--) - for(j = 0; j < i && num_parents < max; j++) + for(j = i-1; j >= 0 && num_parents < max; j--) { const struct task *t2 = &s->tasks[gettaskindex(tid[j], s)]; const int nr_un = t2->nr_unlocks; -- GitLab