added uncles to top row
This commit is contained in:
@@ -14,7 +14,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
$scope.lastDifficulty = 0;
|
||||
$scope.upTimeTotal = 0;
|
||||
$scope.avgBlockTime = 0;
|
||||
$scope.unclesInLast = 0;
|
||||
$scope.uncleCount = 0;
|
||||
$scope.bestStats = {};
|
||||
|
||||
$scope.lastBlocksTime = [];
|
||||
@@ -26,7 +26,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
$scope.nodes = [];
|
||||
$scope.map = [];
|
||||
$scope.blockPropagationChart = [];
|
||||
$scope.uncleCount = [];
|
||||
$scope.uncleCountChart = [];
|
||||
|
||||
$scope.latency = 0;
|
||||
|
||||
@@ -132,10 +132,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
break;
|
||||
|
||||
case "uncleCount":
|
||||
$scope.uncleCount = data;
|
||||
$scope.unclesInLast = data[0];
|
||||
$scope.uncleCountChart = data;
|
||||
$scope.uncleCount = data[0] + data[1];
|
||||
|
||||
jQuery('.spark-uncles').sparkline($scope.uncleCount.reverse(), {type: 'bar', barSpacing: 1});
|
||||
jQuery('.spark-uncles').sparkline($scope.uncleCountChart.reverse(), {type: 'bar', barSpacing: 1});
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user