changed propagation calculation to miliseconds

This commit is contained in:
cubedro 2015-02-23 18:51:48 +02:00
parent b7ce4ddf2b
commit cbf3803740
1 changed files with 2 additions and 2 deletions

View File

@ -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')
{