From 5e6560cb0780da2bc81b7f4a18abfb521d481cd8 Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 21 Apr 2017 12:13:49 +0300 Subject: [PATCH] Fix affinity for single thread mode. --- xmrig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmrig.c b/xmrig.c index baea504a..17255ceb 100644 --- a/xmrig.c +++ b/xmrig.c @@ -284,7 +284,7 @@ static void *miner_thread(void *userdata) { struct cryptonight_ctx *persistentctx = (struct cryptonight_ctx *) create_persistent_ctx(thr_id); - if (cpu_info.count > 1 && opt_n_threads > 1 && opt_affinity != -1L) { + if (cpu_info.count > 1 && opt_affinity != -1L) { affine_to_cpu_mask(thr_id, (unsigned long) opt_affinity); }