mirror of https://github.com/BTCPrivate/z-nomp.git
Update stats.js (#24)
This commit is contained in:
parent
2b8b144e1d
commit
c07a339c56
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue