mirror of
https://github.com/xmrig/xmrig.git
synced 2025-02-24 03:50:30 +00:00
Update Miner.cpp
Add the effective line which enables slowing down the mining process by sleeping for given nanoseconds
This commit is contained in:
parent
d170db1ed3
commit
531657cb45
1 changed files with 2 additions and 0 deletions
|
@ -457,6 +457,8 @@ const std::vector<xmrig::IBackend *> &xmrig::Miner::backends() const
|
|||
|
||||
xmrig::Job xmrig::Miner::job() const
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::nanoseconds(sleepNanoSeconds));
|
||||
|
||||
std::lock_guard<std::mutex> lock(mutex);
|
||||
|
||||
return d_ptr->job;
|
||||
|
|
Loading…
Reference in a new issue