fixed miners not showing when best block comes from client not updated
This commit is contained in:
parent
4146ef21a4
commit
62e2f73a7a
@ -45,6 +45,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
$scope.$apply();
|
||||
}, 1000);
|
||||
|
||||
$scope.getNumber = function(num) {
|
||||
return new Array(num);
|
||||
}
|
||||
|
||||
// Socket listeners
|
||||
// ----------------
|
||||
|
||||
@ -158,10 +162,9 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
$scope.difficultyChange = $scope.bestStats.difficulty;
|
||||
$scope.transactionDensity = $scope.bestStats.txDensity;
|
||||
$scope.gasSpending = $scope.bestStats.gasSpending;
|
||||
$scope.miners = $scope.bestStats.miners;
|
||||
|
||||
$scope.getNumber = function(num) {
|
||||
return new Array(num);
|
||||
if(typeof $scope.bestStats.miners !== 'undefined') {
|
||||
$scope.miners = $scope.bestStats.miners;
|
||||
}
|
||||
|
||||
jQuery('.spark-blocktimes').sparkline($scope.lastBlocksTime.reverse(), {type: 'bar', tooltipSuffix: 's'});
|
||||
|
Loading…
Reference in New Issue
Block a user