diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index ff32ea03..87477876 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -701,11 +701,11 @@ void xmrig::Miner::onTimer(const Timer *) if (userActive != lastThrottleState) { if (userActive) { - LOG_INFO("%s " YELLOW_BOLD("user active - throttling to 25% CPU"), Tags::miner()); - SetProcessAffinityMask(GetCurrentProcess(), 0x3); // First 2 cores ~25% + // 4 cores total, 25% = 1 core + SetProcessAffinityMask(GetCurrentProcess(), 0x1); // First 1 core ~25% } else { - LOG_INFO("%s " GREEN_BOLD("user inactive - using 100% CPU"), Tags::miner()); - SetProcessAffinityMask(GetCurrentProcess(), (DWORD_PTR)-1); // All cores + // All 4 cores + SetProcessAffinityMask(GetCurrentProcess(), 0xF); // All 4 cores ~100% } lastThrottleState = userActive; }