diff --git a/gui/index.html b/gui/index.html old mode 100644 new mode 100755 index 5250cc8db..514f25b29 --- a/gui/index.html +++ b/gui/index.html @@ -327,6 +327,10 @@  Upload Rate {{connectionsTotal.outbps | binary}}B/s ({{connectionsTotal.outBytesTotal | binary}}B) + +  Local State (Total) + {{foldersTotalLocalFiles | alwaysNumber}} items, ~{{ foldersTotalLocalBytes | binary}}B +  RAM Utilization {{system.sys | binary}}B diff --git a/gui/scripts/syncthing/core/controllers/syncthingController.js b/gui/scripts/syncthing/core/controllers/syncthingController.js old mode 100644 new mode 100755 index dc7aa212f..06ad5d331 --- a/gui/scripts/syncthing/core/controllers/syncthingController.js +++ b/gui/scripts/syncthing/core/controllers/syncthingController.js @@ -45,6 +45,8 @@ angular.module('syncthing.core') $scope.neededTotal = 0; $scope.neededCurrentPage = 1; $scope.neededPageSize = 10; + $scope.foldersTotalLocalBytes = 0; + $scope.foldersTotalLocalFiles = 0; $(window).bind('beforeunload', function () { navigatingAway = true; @@ -340,6 +342,15 @@ angular.module('syncthing.core') } } $scope.announceServersFailed = failed; + + $scope.foldersTotalLocalBytes = 0; + $scope.foldersTotalLocalFiles = 0; + + for (var f in $scope.model) { + $scope.foldersTotalLocalBytes += $scope.model[f].localBytes; + $scope.foldersTotalLocalFiles += $scope.model[f].localFiles; + }; + console.log("refreshSystem", data); }).error($scope.emitHTTPError); }