diff options
author | Simon Rettberg | 2020-07-07 16:36:46 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-07-07 16:36:46 +0200 |
commit | d635a52fd965519eecb717ea5b953a5f12ef9b88 (patch) | |
tree | 621d70b385d35409ff5a9f93edbf42ba39ad584f /modules-available/systemstatus/templates/systeminfo.html | |
parent | [systemstatus] Add dnbd3-master-proxy to service status (diff) | |
download | slx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.tar.gz slx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.tar.xz slx-admin-d635a52fd965519eecb717ea5b953a5f12ef9b88.zip |
[systemstatus/sysconfig] Manage LDADP via systemd
Finally got rid of our own little service manager. Status/restart
handling capabilities were added to the system status page.
TODO: Permissions for dnbd3, service (re)starting in general
Diffstat (limited to 'modules-available/systemstatus/templates/systeminfo.html')
-rw-r--r-- | modules-available/systemstatus/templates/systeminfo.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/systemstatus/templates/systeminfo.html b/modules-available/systemstatus/templates/systeminfo.html index ed4a1532..cf3f0cc2 100644 --- a/modules-available/systemstatus/templates/systeminfo.html +++ b/modules-available/systemstatus/templates/systeminfo.html @@ -61,6 +61,7 @@ wrpClass: 'circles-wrp', textClass: 'circles-text' }); + var $cpu = $(cpuCircle._el); var lastCpuTotal = {{CpuTotal}}; var lastCpuIdle = {{CpuIdle}}; var lastCpuPercent = {{cpuLoad}}; @@ -93,6 +94,10 @@ {{/memTotal}} function updateSystem() { if (!cpuCircle && !memCircle) return; + if (!$cpu.is(':visible')) { + setTimeout(updateSystem, 1200); + return; + } $.post('?do=SystemStatus&action=SysPoll', { token: TOKEN }, function(data) { if (memCircle && data.MemPercent) memCircle.update(data.MemPercent); if (swapCircle && data.SwapPercent) swapCircle.update(data.SwapPercent); |