Fix nonce allocation in DoubleWorker.

This commit is contained in:
XMRig 2018-04-03 03:27:44 +07:00
parent c1bc6acd26
commit d7c5630509
9 changed files with 14 additions and 9 deletions

View file

@ -46,7 +46,7 @@ bool Mem::allocate(int algo, int threads, bool doubleHash, bool enabled)
m_threads = threads;
m_doubleHash = doubleHash;
const int ratio = (doubleHash && algo != xmrig::ALGO_CRYPTONIGHT_LITE) ? 2 : 1;
const int ratio = (doubleHash && algo != xmrig::CRYPTONIGHT_LITE) ? 2 : 1;
m_size = MONERO_MEMORY * (threads * ratio + 1);
if (!enabled) {