Fixed hashrate and diff display for KawPow
This commit is contained in:
parent
734f142b47
commit
6676126376
7 changed files with 127 additions and 41 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue