瀏覽代碼

fix bad interaction between prio.c and round robin algorithm

Simon Archipoff 12 年之前
父節點
當前提交
3db28a8828
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/sched_policies/prio.c

+ 1 - 1
tests/sched_policies/prio.c

@@ -77,7 +77,7 @@ run(struct starpu_sched_policy *policy)
 	for (i = 0; i < NTASKS; i++) {
 		struct starpu_task *task = starpu_task_create();
 
-		if (i%2) {
+		if (random()%2) {
 			task->cl = &clA;
 			task->priority=STARPU_MIN_PRIO;
 		} else {