Browse Source

Use 3 significant digits when suffix string is used and values are >1000.

nfactor-troky
ckolivas 12 years ago
parent
commit
3fce32f494
  1. 2
      cgminer.c

2
cgminer.c

@ -1504,7 +1504,7 @@ static void suffix_string(uint64_t val, char *buf, int sigdigits) @@ -1504,7 +1504,7 @@ static void suffix_string(uint64_t val, char *buf, int sigdigits)
if (!sigdigits) {
if (decimal)
sprintf(buf, "%.1f%s", dval, suffix);
sprintf(buf, "%.3g%s", dval, suffix);
else
sprintf(buf, "%d%s", (unsigned int)dval, suffix);
} else {

Loading…
Cancel
Save