Show counters for total data transferred (fixes #265)

This commit is contained in:
Jakob Borg
2014-05-24 21:34:11 +02:00
parent 5454ca1cf7
commit c2f75d3689
5 changed files with 26 additions and 11 deletions

View File

@@ -86,9 +86,6 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
id;
prevDate = now;
$scope.inbps = 0;
$scope.outbps = 0;
for (id in data) {
if (!data.hasOwnProperty(id)) {
continue;
@@ -100,8 +97,6 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) {
data[id].inbps = 0;
data[id].outbps = 0;
}
$scope.inbps += data[id].inbps;
$scope.outbps += data[id].outbps;
}
$scope.connections = data;
});