Browse Source

Merge pull request #236 from Blagodarenko/v5_0

fix "diff 0.000/0.000"
djm34
Jan Berdajs 11 years ago
parent
commit
518d6e9eca
  1. 2
      sgminer.c

2
sgminer.c

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

Loading…
Cancel
Save