Fix command line option "-a cn-heavy".

This commit is contained in:
XMRig 2018-06-11 12:26:49 +07:00
parent dab4239aca
commit 1d31f1b0b8

View file

@ -233,7 +233,10 @@ void Pool::adjust(xmrig::Algo algorithm)
m_algorithm.setAlgo(algorithm);
if (m_algorithm.variant() == xmrig::VARIANT_AUTO) {
if (algorithm == xmrig::CRYPTONIGHT) {
if (algorithm == xmrig::CRYPTONIGHT_HEAVY) {
m_algorithm.setVariant(xmrig::VARIANT_0);
}
else {
m_algorithm.setVariant(xmrig::VARIANT_1);
}
}