added hashrate
This commit is contained in:
parent
4f7ba9f578
commit
5963eb5a80
@ -14,6 +14,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
|||||||
$scope.lastDifficulty = 0;
|
$scope.lastDifficulty = 0;
|
||||||
$scope.upTimeTotal = 0;
|
$scope.upTimeTotal = 0;
|
||||||
$scope.avgBlockTime = 0;
|
$scope.avgBlockTime = 0;
|
||||||
|
$scope.avgHashrate = 0;
|
||||||
$scope.uncleCount = 0;
|
$scope.uncleCount = 0;
|
||||||
$scope.bestStats = {};
|
$scope.bestStats = {};
|
||||||
|
|
||||||
@ -154,6 +155,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
|||||||
case "charts":
|
case "charts":
|
||||||
$scope.lastBlocksTime = data.blocktime;
|
$scope.lastBlocksTime = data.blocktime;
|
||||||
$scope.avgBlockTime = data.avgBlocktime;
|
$scope.avgBlockTime = data.avgBlocktime;
|
||||||
|
$scope.avgHashrate = $scope.lastDifficulty / 1000000 * data.avgBlocktime;
|
||||||
$scope.difficultyChart = data.difficulty;
|
$scope.difficultyChart = data.difficulty;
|
||||||
$scope.transactionDensity = data.transactions;
|
$scope.transactionDensity = data.transactions;
|
||||||
$scope.gasSpending = data.gasSpending;
|
$scope.gasSpending = data.gasSpending;
|
||||||
|
@ -28,12 +28,12 @@ block content
|
|||||||
span.big-details {{'#'}}{{ bestBlock | number}}
|
span.big-details {{'#'}}{{ bestBlock | number}}
|
||||||
div.clearfix
|
div.clearfix
|
||||||
div.col-xs-2.stat-holder
|
div.col-xs-2.stat-holder
|
||||||
div.big-info.difficulty.text-info
|
div.big-info.difficulty.text-orange
|
||||||
div.pull-left.icon-full-width
|
div.pull-left.icon-full-width
|
||||||
i.icon-difficulty
|
i.icon-hashrate
|
||||||
div.pull-left
|
div.pull-left
|
||||||
span.small-title difficulty
|
span.small-title avg hashrate
|
||||||
span.big-details {{ lastDifficulty | number }}
|
span.big-details {{ avgHashrate | number : 1 }} MH/s
|
||||||
div.clearfix
|
div.clearfix
|
||||||
div.col-xs-2.stat-holder
|
div.col-xs-2.stat-holder
|
||||||
div.big-info.uncleCount.text-info
|
div.big-info.uncleCount.text-info
|
||||||
|
Loading…
Reference in New Issue
Block a user