fixed received bug

This commit is contained in:
cubedro 2015-03-27 13:44:35 +02:00
parent f664d55107
commit 2ddaf5e6ad

View File

@ -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;