1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Merge pull request #236 from Blagodarenko/v5_0

fix "diff 0.000/0.000"
This commit is contained in:
Jan Berdajs 2014-06-06 12:47:00 +02:00
commit 518d6e9eca

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);
} }