1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-18 21:22:50 -05:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Tony Butler
9bdcb15fa2 Merge cb1405d2d5 into a7be8cb80c 2024-06-25 11:08:19 -06:00
Tony Butler
cb1405d2d5 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
2024-06-25 11:02:37 -06:00

View File

@@ -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;
}