added latency update

This commit is contained in:
cubedro
2015-04-03 07:00:06 +03:00
parent 9487a06dbd
commit ec14cc4d67
4 changed files with 43 additions and 0 deletions

View File

@@ -85,6 +85,10 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
$scope.nodes[findIndex({id: data.id})].stats = data.stats;
toastr['error']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" went away!", "Node connection was lost!");
break;
case "latency":
$scope.nodes[findIndex({id: data.id})].stats.latency = data.latency;
break;
}
updateStats();