|
|
@ -18,6 +18,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { |
|
|
|
$scope.lastBlocksTime = []; |
|
|
|
$scope.lastBlocksTime = []; |
|
|
|
$scope.difficultyChange = []; |
|
|
|
$scope.difficultyChange = []; |
|
|
|
$scope.transactionDensity = []; |
|
|
|
$scope.transactionDensity = []; |
|
|
|
|
|
|
|
$scope.gasSpending = []; |
|
|
|
|
|
|
|
|
|
|
|
$scope.nodes = []; |
|
|
|
$scope.nodes = []; |
|
|
|
$scope.map = []; |
|
|
|
$scope.map = []; |
|
|
@ -157,6 +158,12 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { |
|
|
|
|
|
|
|
|
|
|
|
jQuery('.spark-transactions').sparkline($scope.transactionDensity, {type: 'bar'}); |
|
|
|
jQuery('.spark-transactions').sparkline($scope.transactionDensity, {type: 'bar'}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.gasSpending = _.max($scope.nodes, function(node) { |
|
|
|
|
|
|
|
return parseInt(node.stats.block.number); |
|
|
|
|
|
|
|
}).stats.gasSpending; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jQuery('.spark-gasspending').sparkline($scope.gasSpending, {type: 'bar'}); |
|
|
|
|
|
|
|
|
|
|
|
$scope.map = _.map($scope.nodes, function(node) { |
|
|
|
$scope.map = _.map($scope.nodes, function(node) { |
|
|
|
if(node.geo != null) |
|
|
|
if(node.geo != null) |
|
|
|
return { |
|
|
|
return { |
|
|
|