From 78006fcc050fe99aa87df99d00b725a5e53ce52d Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Wed, 24 Aug 2011 15:12:58 -0400 Subject: [PATCH] display at least 3 digits in hashrate displays --- p2pool/util/math.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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] -- 1.7.1