summaryrefslogtreecommitdiffstats
path: root/modules/systemstatus.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-16 10:38:35 +0200
committerSimon Rettberg2015-09-16 10:38:35 +0200
commitc4389a9ab63e9c9641da6a8dd3ec4f8c61a92b98 (patch)
tree6ef4c25bc676b55c67e76333dfc7125bc73356b5 /modules/systemstatus.inc.php
parent[backup/restore] Add options to select what to restore (diff)
downloadslx-admin-c4389a9ab63e9c9641da6a8dd3ec4f8c61a92b98.tar.gz
slx-admin-c4389a9ab63e9c9641da6a8dd3ec4f8c61a92b98.tar.xz
slx-admin-c4389a9ab63e9c9641da6a8dd3ec4f8c61a92b98.zip
[systemstatus] Show active uploads/downloads
Diffstat (limited to 'modules/systemstatus.inc.php')
-rw-r--r--modules/systemstatus.inc.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/systemstatus.inc.php b/modules/systemstatus.inc.php
index 46bab5b6..0106ab9d 100644
--- a/modules/systemstatus.inc.php
+++ b/modules/systemstatus.inc.php
@@ -49,6 +49,22 @@ class Page_SystemStatus extends Page
echo "Action $action not known in " . get_class();
}
}
+
+ protected function ajaxDmsdUsers()
+ {
+ $ret = Download::asStringPost('http://127.0.0.1:9080/status/fileserver', false, 2, $code);
+ if ($code != 200) {
+ Header('HTTP/1.1 502 Internal Server Error');
+ die('Internal Server Wurst');
+ }
+ $data = @json_decode($ret, true);
+ if (is_array($data)) {
+ $ret = 'Uploads: ' . $data['activeUploads'] . ', Downloads: ' . $data['activeDownloads'];
+ } else {
+ $ret = '???';
+ }
+ die($ret);
+ }
protected function ajaxDiskStat()
{