client: fix bug in benchmark CPU selection

This commit is contained in:
David Anderson 2016-12-19 17:36:11 -08:00
parent 6fa6af44d0
commit 2da0e5cdb1
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ void CLIENT_STATE::start_cpu_benchmarks() {
&benchmark_descs[i].pid
);
int n = host.p_ncpus;
j = (i >= n/2)? 2*i+1 : 2*i;
j = (i >= n/2)? 2*i+1-n : 2*i;
SetThreadAffinityMask(benchmark_descs[i].handle, 1<<j);
SetThreadPriority(benchmark_descs[i].handle, THREAD_PRIORITY_IDLE);
#else