1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-11 01:22:45 -05:00

Fixed hashrate and diff display for KawPow

This commit is contained in:
SChernykh
2020-05-28 22:03:28 +02:00
parent 734f142b47
commit 6676126376
7 changed files with 127 additions and 41 deletions

View File

@@ -114,6 +114,16 @@ static inline uint32_t clz(uint32_t a)
}
uint64_t KPCache::cache_size(uint32_t epoch)
{
if (epoch >= sizeof(cache_sizes) / sizeof(cache_sizes[0])) {
return 0;
}
return cache_sizes[epoch];
}
uint64_t KPCache::dag_size(uint32_t epoch)
{
if (epoch >= sizeof(dag_sizes) / sizeof(dag_sizes[0])) {