added hashrate units

This commit is contained in:
cubedro
2015-04-29 12:39:51 +03:00
parent 7557ccf438
commit 3a81372329
3 changed files with 32 additions and 3 deletions

View File

@@ -334,9 +334,9 @@ History.prototype.getAvgHashrate = function()
})
.value();
var avgBlocktime = _.sum(blocktimeHistory) / blocktimeHistory.length;
var avgBlocktime = (_.sum(blocktimeHistory) / blocktimeHistory.length)/1000;
return avgDifficulty / 1000 * 12 * ( 12 / avgBlocktime );
return avgDifficulty * 12 * ( 12 / avgBlocktime );
}
History.prototype.getMinersCount = function()