From 2da0e5cdb1933a87dc3c8e9df411927b170fe007 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 19 Dec 2016 17:36:11 -0800 Subject: [PATCH] client: fix bug in benchmark CPU selection --- client/cs_benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cs_benchmark.cpp b/client/cs_benchmark.cpp index 7258f1e6cb..78cfbd307a 100644 --- a/client/cs_benchmark.cpp +++ b/client/cs_benchmark.cpp @@ -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<