From a611441f17a9396fee650f791c069e4df9632a02 Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Sun, 28 Apr 2024 21:35:34 +0800 Subject: [PATCH] nan --- miner/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miner/src/main.rs b/miner/src/main.rs index 1ed8c97..7358293 100644 --- a/miner/src/main.rs +++ b/miner/src/main.rs @@ -139,8 +139,8 @@ fn main() { n += 1; let mut config = cli_arg.as_cacl_config(); // 核心亲和性: n, n+1 - config.core_affinity = Some((1 << i) + (1 << (i + 1))); - cores |= (1 << i) + (1 << (i + 1)); + config.core_affinity = Some(1 << i); + cores |= 1 << i; let out_path = out_path.clone(); let thread_name = format!("thread_{}", n); threads.push(std::thread::spawn(move || {