commit
51cae6fdb8
@ -87,7 +87,7 @@ Node.prototype.getInfo = function()
|
|||||||
|
|
||||||
Node.prototype.setStats = function(stats)
|
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) {
|
if(stats.block.number !== this.stats.number) {
|
||||||
stats.block.received == (new Date()).getTime() - stats.block.arrival;
|
stats.block.received == (new Date()).getTime() - stats.block.arrival;
|
||||||
|
Loading…
Reference in New Issue
Block a user