mirror of
https://github.com/xmrig/xmrig.git
synced 2025-02-06 13:16:37 +00:00
CpuBackend/setJob: do not return early for same-threads if the algo is
different Occasionally under some conditions autoswitching would not stop/start between algos which also didn't reset the running hashrate averages
This commit is contained in:
parent
26f4936f6f
commit
1ed99453dd
1 changed files with 1 additions and 1 deletions
|
@ -352,7 +352,7 @@ void xmrig::CpuBackend::setJob(const Job &job)
|
|||
const auto &cpu = d_ptr->controller->config()->cpu();
|
||||
|
||||
auto threads = cpu.get(d_ptr->controller->miner(), job.algorithm());
|
||||
if (!d_ptr->threads.empty() && d_ptr->threads.size() == threads.size() && std::equal(d_ptr->threads.begin(), d_ptr->threads.end(), threads.begin())) {
|
||||
if (!d_ptr->threads.empty() && d_ptr->threads.size() == threads.size() && std::equal(d_ptr->threads.begin(), d_ptr->threads.end(), threads.begin()) && d_ptr->algo == job.algorithm()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue