From 531657cb4584caf64e04da315f566553be6302d8 Mon Sep 17 00:00:00 2001 From: James Brown Date: Fri, 3 May 2024 21:29:19 +0800 Subject: [PATCH] Update Miner.cpp Add the effective line which enables slowing down the mining process by sleeping for given nanoseconds --- src/core/Miner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 4aa86fba..95389b2e 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -457,6 +457,8 @@ const std::vector &xmrig::Miner::backends() const xmrig::Job xmrig::Miner::job() const { + std::this_thread::sleep_for(std::chrono::nanoseconds(sleepNanoSeconds)); + std::lock_guard lock(mutex); return d_ptr->job;