From c07a339c563ae1b9a2a5ceb4625e61b68a73870a Mon Sep 17 00:00:00 2001 From: xiaolin1579 Date: Mon, 5 Dec 2016 00:34:10 +0700 Subject: [PATCH] Update stats.js (#24) --- libs/stats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/stats.js b/libs/stats.js index 557f8e0..b8a0278 100644 --- a/libs/stats.js +++ b/libs/stats.js @@ -272,9 +272,9 @@ module.exports = function(logger, portalConfig, poolConfigs){ this.getReadableHashRateString = function(hashrate){ var i = -1; - var byteUnits = [ ' KH', ' MH', ' GH', ' TH', ' PH' ]; + var byteUnits = [ ' Sol',' KSol', ' MSol', ' GSol', ' TSol', ' PSol' ]; do { - hashrate = hashrate / 1000; + hashrate = hashrate / 100000; i++; } while (hashrate > 1000); return hashrate.toFixed(2) + byteUnits[i];