Browse Source

correct index of worker

Andra Hugo 11 years ago
parent
commit
10e0ba5a14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/sched_ctx/sched_ctx_without_sched_policy.c

+ 1 - 1
examples/sched_ctx/sched_ctx_without_sched_policy.c

@@ -96,7 +96,7 @@ int main(int argc, char **argv)
 		nprocs2 =  ncpus-nprocs1;
 		k = 0;
 		for(j = nprocs1; j < nprocs1+nprocs2; j++)
-			procs2[k++] = j;
+			procs2[k++] = procs1[j];
 	}
 	else
 	{