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){
|
this.getReadableHashRateString = function(hashrate){
|
||||||
var i = -1;
|
var i = -1;
|
||||||
var byteUnits = [ ' KH', ' MH', ' GH', ' TH', ' PH' ];
|
var byteUnits = [ ' Sol',' KSol', ' MSol', ' GSol', ' TSol', ' PSol' ];
|
||||||
do {
|
do {
|
||||||
hashrate = hashrate / 1000;
|
hashrate = hashrate / 100000;
|
||||||
i++;
|
i++;
|
||||||
} while (hashrate > 1000);
|
} while (hashrate > 1000);
|
||||||
return hashrate.toFixed(2) + byteUnits[i];
|
return hashrate.toFixed(2) + byteUnits[i];
|
||||||
|
|
Loading…
Reference in New Issue