Reduced memory for KawPow

This commit is contained in:
SChernykh 2020-06-05 14:01:49 +02:00
parent ba405d1984
commit 0dbf41f761
6 changed files with 42 additions and 17 deletions

View file

@ -238,7 +238,7 @@ public:
# ifdef XMRIG_ALGO_KAWPOW
if (algo.family() == Algorithm::KAWPOW) {
const uint32_t epoch = job.height() / KPHash::EPOCH_LENGTH;
mem_used = (KPCache::cache_size(epoch) + KPCache::dag_size(epoch)) / oneMiB;
mem_used = (KPCache::dag_size(epoch) + oneMiB - 1) / oneMiB;
}
# endif