Update stats.js (#24)

This commit is contained in:
xiaolin1579 2016-12-05 00:34:10 +07:00 committed by Joshua Yabut
parent 2b8b144e1d
commit c07a339c56
1 changed files with 2 additions and 2 deletions

View File

@ -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];