refresh data
This commit is contained in:
parent
d4a2cba41f
commit
f76e690f90
@ -16,10 +16,10 @@ var Node = function Node(data)
|
|||||||
difficulty: 0,
|
difficulty: 0,
|
||||||
number: 0,
|
number: 0,
|
||||||
gasLimit: 0,
|
gasLimit: 0,
|
||||||
timestamp: 0,
|
timestamp: 0
|
||||||
blocktime: 0
|
|
||||||
},
|
},
|
||||||
blocktimeAvg: 0,
|
blocktimeAvg: 0,
|
||||||
|
blockTimes: [],
|
||||||
difficulty: [],
|
difficulty: [],
|
||||||
latency: 0,
|
latency: 0,
|
||||||
uptime: 0,
|
uptime: 0,
|
||||||
|
@ -18,6 +18,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
|||||||
$scope.nodes = [];
|
$scope.nodes = [];
|
||||||
$scope.map = [];
|
$scope.map = [];
|
||||||
|
|
||||||
|
$scope.timeout = setInterval(function(){
|
||||||
|
$scope.$apply();
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
// Socket listeners
|
// Socket listeners
|
||||||
// ----------------
|
// ----------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user