mirror of https://github.com/BTCPrivate/z-nomp.git
Update stats.js
This commit is contained in:
parent
6edd190842
commit
ee27470e7a
|
@ -260,11 +260,11 @@ module.exports = function(logger, portalConfig, poolConfigs){
|
|||
balName = String(bals[1][b]);
|
||||
} else if (balName == workerName) {
|
||||
balAmount = parseFloat(bals[1][b]);
|
||||
totalHeld = balanceRound(totalHeld+balAmount);
|
||||
}
|
||||
}
|
||||
paidAmount = parseFloat(pays[1][i]);
|
||||
totalPaid = balanceRound(totalPaid+paidAmount);
|
||||
totalHeld += balAmount;
|
||||
totalPaid += paidAmount;
|
||||
balances.push({
|
||||
worker:String(workerName),
|
||||
balance:balanceRound(balAmount),
|
||||
|
@ -285,7 +285,7 @@ module.exports = function(logger, portalConfig, poolConfigs){
|
|||
_this.stats.balances = balances;
|
||||
_this.stats.address = address;
|
||||
|
||||
cback({totalHeld:totalHeld, totalPaid:totalPaid, balances});
|
||||
cback({totalHeld:balanceRound(totalHeld), totalPaid:balanceRound(totalPaid), balances});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue