refresh data

This commit is contained in:
cubedro 2015-02-23 16:48:00 +02:00
parent d4a2cba41f
commit f76e690f90
2 changed files with 6 additions and 2 deletions

View File

@ -16,10 +16,10 @@ var Node = function Node(data)
difficulty: 0,
number: 0,
gasLimit: 0,
timestamp: 0,
blocktime: 0
timestamp: 0
},
blocktimeAvg: 0,
blockTimes: [],
difficulty: [],
latency: 0,
uptime: 0,

View File

@ -18,6 +18,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
$scope.nodes = [];
$scope.map = [];
$scope.timeout = setInterval(function(){
$scope.$apply();
}, 1000);
// Socket listeners
// ----------------