fixed block.number

This commit is contained in:
cubedro 2015-03-27 14:22:28 +02:00
parent 79e6e82c4c
commit a01706c971

View File

@ -89,7 +89,7 @@ Node.prototype.setStats = function(stats)
{
if(typeof stats !== 'undefined' && typeof stats.block !== 'undefined' && typeof stats.block.number !== 'undefined')
{
if(stats.block.number !== this.stats.number) {
if(stats.block.number !== this.stats.block.number) {
stats.block.received = (new Date()).getTime() - stats.block.arrival;
} else {
stats.block.received = this.stats.block.received;