From 2cace14712715e9f213a1aa6a3f861ae4b248f09 Mon Sep 17 00:00:00 2001 From: Newbie Date: Fri, 19 Jan 2018 21:46:39 +0700 Subject: [PATCH] Fix NaN , credit to 1rV1N-git https://github.com/Snipa22/nodejs-pool/issues/86 --- lib/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/worker.js b/lib/worker.js index 788f4e0..cb0b499 100644 --- a/lib/worker.js +++ b/lib/worker.js @@ -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"); } } );