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:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user