Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrik Kernstock <info@pkern.at>2018-09-02 04:16:06 +0300
committerPatrik Kernstock <info@pkern.at>2018-09-02 04:16:06 +0300
commit3e99c960a3ad75106c6b5f4bcf198921cf68656d (patch)
treeb5d2c3815d7ee9e9207a948d665cbdc462574d0e /js
parent5ff2dee83e4b234f1830bed58ec0db5c16f731d6 (diff)
Add NC section to serverinfo UI page
This adds a few monitoring information we already collect anyway - and were already available in the API endpoint. This currently loads all SystemStatistics, which might be reduced to a smaller dataset in the future for performance reasons. Note: `webServer` in ApiController might be moved to `SystemStatistics` at a later point. Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'js')
-rw-r--r--js/script.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/script.js b/js/script.js
index 5367cfe..f6dbb3c 100644
--- a/js/script.js
+++ b/js/script.js
@@ -35,9 +35,11 @@
resizeSystemCharts();
updateActiveUsersStatistics();
updateShareStatistics();
+
setHumanReadableSizeToElement("dataBaseSize");
setHumanReadableSizeToElement("phpMemLimit");
setHumanReadableSizeToElement("phpUploadMaxSize");
+ setHumanReadableSizeToElement("numFilesFreeSpace");
initMonitoringLinkToClipboard();
$("#monitoring-endpoint-url").on('click', function() {