Merge pull request #31 from cubedro/develop

fixed block.number
pull/5/head
Marian OANCΞA 10 years ago
commit 30d570390d
  1. 2
      models/node.js

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

Loading…
Cancel
Save