Merge pull request #60 from Spudz76/ocean-master-fixAsteriskProfile

Fix --threads generates "*" profile without "kawpow":false to negate it.
This commit is contained in:
MoneroOcean 2021-06-01 00:20:22 +00:00 committed by GitHub
commit 62b422d5b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}