Browse Source

Change hashrate display to never display 3 fractional digits, because it looks a bit ugly

Luke Dashjr 12 years ago
parent
commit
0e25cc1abc
1 changed files with 0 additions and 3 deletions
  1. 0 3
      miner.c

+ 0 - 3
miner.c

@@ -2300,10 +2300,7 @@ hashrate_to_bufstr(char*buf, float hashrate, signed char unitin, enum h2bs_fmt f
 	if (hashrate >= 100 || unit < 2)
 		prec = 1;
 	else
-	if (hashrate >= 10)
 		prec = 2;
-	else
-		prec = 3;
 	ucp = (fmt == H2B_NOUNIT ? '\0' : buf[5]);
 	sprintf(buf, "%5.*f", prec, hashrate);
 	buf[5] = ucp;