mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 17:53:59 +00:00
Merge remote-tracking branch 'syncthing/pr/1979'
* syncthing/pr/1979: Display Local State Summary (All Folders)
This commit is contained in:
commit
54a8de2059
4
gui/index.html
Normal file → Executable file
4
gui/index.html
Normal file → Executable file
@ -327,6 +327,10 @@
|
|||||||
<th><span class="glyphicon glyphicon-cloud-upload"></span> <span translate>Upload Rate</span></th>
|
<th><span class="glyphicon glyphicon-cloud-upload"></span> <span translate>Upload Rate</span></th>
|
||||||
<td class="text-right">{{connectionsTotal.outbps | binary}}B/s ({{connectionsTotal.outBytesTotal | binary}}B)</td>
|
<td class="text-right">{{connectionsTotal.outbps | binary}}B/s ({{connectionsTotal.outBytesTotal | binary}}B)</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><span class="glyphicon glyphicon-home"></span> <span translate>Local State (Total)</span> </th>
|
||||||
|
<td class="text-right">{{foldersTotalLocalFiles | alwaysNumber}} <span translate>items</span>, ~{{ foldersTotalLocalBytes | binary}}B</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th><span class="glyphicon glyphicon-th"></span> <span translate>RAM Utilization</span></th>
|
<th><span class="glyphicon glyphicon-th"></span> <span translate>RAM Utilization</span></th>
|
||||||
<td class="text-right">{{system.sys | binary}}B</td>
|
<td class="text-right">{{system.sys | binary}}B</td>
|
||||||
|
11
gui/scripts/syncthing/core/controllers/syncthingController.js
Normal file → Executable file
11
gui/scripts/syncthing/core/controllers/syncthingController.js
Normal file → Executable file
@ -45,6 +45,8 @@ angular.module('syncthing.core')
|
|||||||
$scope.neededTotal = 0;
|
$scope.neededTotal = 0;
|
||||||
$scope.neededCurrentPage = 1;
|
$scope.neededCurrentPage = 1;
|
||||||
$scope.neededPageSize = 10;
|
$scope.neededPageSize = 10;
|
||||||
|
$scope.foldersTotalLocalBytes = 0;
|
||||||
|
$scope.foldersTotalLocalFiles = 0;
|
||||||
|
|
||||||
$(window).bind('beforeunload', function () {
|
$(window).bind('beforeunload', function () {
|
||||||
navigatingAway = true;
|
navigatingAway = true;
|
||||||
@ -340,6 +342,15 @@ angular.module('syncthing.core')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$scope.announceServersFailed = failed;
|
$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);
|
console.log("refreshSystem", data);
|
||||||
}).error($scope.emitHTTPError);
|
}).error($scope.emitHTTPError);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user