1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-16 11:12:47 -05:00

Fix --threads generates "*" profile without "kawpow":false to negate it.

This commit is contained in:
Tony Butler
2021-05-30 07:01:21 -06:00
parent 4c6d815b19
commit ba2f07a1f7
2 changed files with 7 additions and 1 deletions

View File

@@ -266,7 +266,7 @@ bool xmrig::CpuBackend::isEnabled() const
bool xmrig::CpuBackend::isEnabled(const Algorithm &algorithm) const
{
return !d_ptr->controller->config()->cpu().threads().get(algorithm).isEmpty();
return algorithm.isValid() && !d_ptr->controller->config()->cpu().threads().get(algorithm).isEmpty();
}