Fix NaN , credit to 1rV1N-git

https://github.com/Snipa22/nodejs-pool/issues/86
This commit is contained in:
Newbie
2018-01-19 21:46:39 +07:00
committed by GitHub
parent ffc6b3dfe6
commit 2cace14712
+1 -1
View File
@@ -513,7 +513,7 @@ function monitorNodes() {
}
rows.forEach(function (row) {
if (row.blockID < block.height - 3) {
global.support.sendEmail(global.config.general.adminEmail, "Pool server behind in blocks", "The pool server: "+row.hostname+" with IP: "+row.ip+" is "+block.height - row.blockID+ " blocks behind");
global.support.sendEmail(global.config.general.adminEmail, "Pool server behind in blocks", "The pool server: "+row.hostname+" with IP: "+row.ip+" is "+(block.height - row.blockID)+ " blocks behind");
}
}
);