More than a year ago might as well be never (fixes #690)

This commit is contained in:
Jakob Borg
2014-09-14 23:16:15 +02:00
parent 6471ba70e4
commit 2927de7cf9
3 changed files with 8 additions and 4 deletions

View File

@@ -371,6 +371,10 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http, $translate, $loca
var refreshNodeStats = debounce(function () {
$http.get(urlbase+"/stats/node").success(function (data) {
$scope.stats = data;
for (var node in $scope.stats) {
$scope.stats[node].LastSeen = new Date($scope.stats[node].LastSeen);
$scope.stats[node].LastSeenDays = (new Date() - $scope.stats[node].LastSeen) / 1000 / 86400;
}
console.log("refreshNodeStats", data);
});
}, 500);