1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

fix "diff 0.000/0.000"

This commit is contained in:
blagodarenko 2014-06-06 14:16:32 +04:00
parent 1bb452e321
commit 1bca4a7921

View File

@ -2306,7 +2306,7 @@ static void suffix_string(uint64_t val, char *buf, size_t bufsiz, int sigdigits)
static void suffix_string_double(double val, char *buf, size_t bufsiz, int sigdigits) static void suffix_string_double(double val, char *buf, size_t bufsiz, int sigdigits)
{ {
if (val < 10) { if (val < 10) {
snprintf(buf, bufsiz, "%.3lf", val); snprintf(buf, bufsiz, "%.3f", val);
} else { } else {
return suffix_string(val, buf, bufsiz, sigdigits); return suffix_string(val, buf, bufsiz, sigdigits);
} }