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

@ -39,7 +39,7 @@
inline static const char *format(double h, char *buf, size_t size)
{
if (std::isnormal(h)) {
snprintf(buf, size, "%03.1f", h);
snprintf(buf, size, (h < 100.0) ? "%04.2f" : "%03.1f", h);
return buf;
}