From cbf3803740e7d96f4990d396ea715ce5d8c45231 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 23 Feb 2015 18:51:48 +0200 Subject: [PATCH] changed propagation calculation to miliseconds --- lib/node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node.js b/lib/node.js index 6eedfd9..a72a584 100644 --- a/lib/node.js +++ b/lib/node.js @@ -158,8 +158,8 @@ Node.prototype.getBlock = function(number) try { block = web3.eth.block(number); - block.arrival = Math.floor(Date.now()/1000); - block.propagation = block.arrival - block.timestamp; + block.arrival = Date.now(); + block.propagation = block.arrival - (block.timestamp * 1000); if(block.hash != '?' && typeof block.difficulty !== 'undefined') {