From: Forrest Voight Date: Wed, 24 Aug 2011 19:12:58 +0000 (-0400) Subject: display at least 3 digits in hashrate displays X-Git-Tag: 0.8.2~196^2~10 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=78006fcc050fe99aa87df99d00b725a5e53ce52d;p=p2pool.git display at least 3 digits in hashrate displays --- diff --git a/p2pool/util/math.py b/p2pool/util/math.py index acf8a60..6f7e62f 100644 --- a/p2pool/util/math.py +++ b/p2pool/util/math.py @@ -58,7 +58,7 @@ def add_dicts(dicts): def format(x): prefixes = 'kMGTPEZY' count = 0 - while x >= 10000 and count < len(prefixes) - 2: + while x >= 100000 and count < len(prefixes) - 2: x = x//1000 count += 1 s = '' if count == 0 else prefixes[count - 1]