refresh data

pull/5/head
cubedro 10 years ago
parent d4a2cba41f
commit f76e690f90
  1. 4
      models/node.js
  2. 4
      public/js/controllers.js

@ -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,

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

Loading…
Cancel
Save