fixed network hashrate

This commit is contained in:
cubedro 2015-05-05 10:18:36 +03:00
parent 2b956f2d61
commit 71128cde10

View File

@ -336,7 +336,7 @@ History.prototype.getAvgHashrate = function()
var avgBlocktime = (_.sum(blocktimeHistory) / blocktimeHistory.length)/1000; var avgBlocktime = (_.sum(blocktimeHistory) / blocktimeHistory.length)/1000;
return avgDifficulty * 12 * ( 12 / avgBlocktime ); return this.bestBlock().block.difficulty / 12 * ( 12 / avgBlocktime );
} }
History.prototype.getMinersCount = function() History.prototype.getMinersCount = function()