From 2ddaf5e6adb0cfc7835036f95f5b981570dc856b Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 27 Mar 2015 13:44:35 +0200 Subject: [PATCH] fixed received bug --- models/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/node.js b/models/node.js index 8f1e202..e56abfd 100644 --- a/models/node.js +++ b/models/node.js @@ -87,7 +87,7 @@ Node.prototype.getInfo = function() Node.prototype.setStats = function(stats) { - if(typeof stats !== undefined && typeof stats.block !== undefined && typeof stats.block.number !== undefined) + if(typeof stats !== 'undefined' && typeof stats.block !== 'undefined' && typeof stats.block.number !== 'undefined') { if(stats.block.number !== this.stats.number) { stats.block.received == (new Date()).getTime() - stats.block.arrival;