|
@@ -79,6 +79,7 @@ angular.module('syncthing.core')
|
|
|
|
|
|
|
|
$scope.localStateTotal = {
|
|
$scope.localStateTotal = {
|
|
|
bytes: 0,
|
|
bytes: 0,
|
|
|
|
|
+ directories: 0,
|
|
|
files: 0
|
|
files: 0
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -448,12 +449,14 @@ angular.module('syncthing.core')
|
|
|
function recalcLocalStateTotal () {
|
|
function recalcLocalStateTotal () {
|
|
|
$scope.localStateTotal = {
|
|
$scope.localStateTotal = {
|
|
|
bytes: 0,
|
|
bytes: 0,
|
|
|
|
|
+ directories: 0,
|
|
|
files: 0
|
|
files: 0
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
for (var f in $scope.model) {
|
|
for (var f in $scope.model) {
|
|
|
$scope.localStateTotal.bytes += $scope.model[f].localBytes;
|
|
$scope.localStateTotal.bytes += $scope.model[f].localBytes;
|
|
|
$scope.localStateTotal.files += $scope.model[f].localFiles;
|
|
$scope.localStateTotal.files += $scope.model[f].localFiles;
|
|
|
|
|
+ $scope.localStateTotal.directories += $scope.model[f].localDirectories;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|