improved hashrate accuracy

This commit is contained in:
cubedro
2015-04-28 14:04:39 +03:00
parent 5963eb5a80
commit 4c76139909
3 changed files with 37 additions and 10 deletions

View File

@@ -155,7 +155,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
case "charts":
$scope.lastBlocksTime = data.blocktime;
$scope.avgBlockTime = data.avgBlocktime;
$scope.avgHashrate = $scope.lastDifficulty / 1000000 * data.avgBlocktime;
$scope.avgHashrate = data.avgHashrate;
$scope.difficultyChart = data.difficulty;
$scope.transactionDensity = data.transactions;
$scope.gasSpending = data.gasSpending;