Merge pull request #147 from cubedro/develop

Fixed stats timing
This commit is contained in:
Marian OANCΞA 2015-05-27 08:09:00 +03:00
commit b0fc2f7644

View File

@ -406,10 +406,6 @@ Node.prototype.getStats = function(forced)
console.log(' ', 'forced:', chalk.reset.cyan(forced === true));
async.parallel({
start: function (callback)
{
callback(null, _.now());
},
peers: function (callback)
{
web3.net.getPeerCount(callback);
@ -444,7 +440,7 @@ Node.prototype.getStats = function(forced)
}
results.end = _.now();
results.diff = results.end - results.start;
results.diff = results.end - self._lastFetch;
console.success('==>', 'Got getStats results in', chalk.reset.cyan(results.diff, 'ms'));