summaryrefslogtreecommitdiffstats
path: root/templates/systemstatus/systeminfo.html
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-11 14:31:09 +0200
committerSimon Rettberg2014-06-11 14:31:09 +0200
commit62d6349c790076ec26edd6e10d617b2f4c385e8b (patch)
treeb2884200b75b34994ddfcfef06bff3d127427e73 /templates/systemstatus/systeminfo.html
parentReboot functionality on system status page (diff)
downloadslx-admin-62d6349c790076ec26edd6e10d617b2f4c385e8b.tar.gz
slx-admin-62d6349c790076ec26edd6e10d617b2f4c385e8b.tar.xz
slx-admin-62d6349c790076ec26edd6e10d617b2f4c385e8b.zip
Minor bug fixes and removal of dead code
Diffstat (limited to 'templates/systemstatus/systeminfo.html')
-rw-r--r--templates/systemstatus/systeminfo.html34
1 files changed, 16 insertions, 18 deletions
diff --git a/templates/systemstatus/systeminfo.html b/templates/systemstatus/systeminfo.html
index 86aefe8f..39b5d7c4 100644
--- a/templates/systemstatus/systeminfo.html
+++ b/templates/systemstatus/systeminfo.html
@@ -1,38 +1,38 @@
<div class="slx-storechart">
<b>CPU-Last</b>
- {{#cpuLoad}}
+ {{#cpuLoadOk}}
<div id="circles-cpuload"></div>
<div>Durchschnitt: {{cpuLoad}}%</div>
<div>Nur OS: {{cpuSystem}}%</div>
<div>Logische CPUs: {{cpuCount}}</div>
- {{/cpuLoad}}
- {{^cpuLoad}}
+ {{/cpuLoadOk}}
+ {{^cpuLoadOk}}
Konnte nicht ermittelt werden
- {{/cpuLoad}}
+ {{/cpuLoadOk}}
</div>
<div class="slx-storechart">
<b>RAM-Nutzung</b>
- {{#memPercent}}
+ {{#memTotal}}
<div id="circles-mem"></div>
<div>Gesamt: {{memTotal}}</div>
<div>Frei: {{memFree}}</div>
- {{/memPercent}}
- {{^memPercent}}
+ {{/memTotal}}
+ {{^memTotal}}
Konnte nicht ermittelt werden
- {{/memPercent}}
+ {{/memTotal}}
</div>
<div class="slx-storechart">
<b>swap-Nutzung</b>
- {{#swapPercent}}
+ {{#memTotal}}
<div id="circles-swap"></div>
<div>Gesamt: {{swapTotal}}</div>
<div>Belegt: {{swapUsed}}</div>
- {{/swapPercent}}
- {{^swapPercent}}
+ {{/memTotal}}
+ {{^memTotal}}
Konnte nicht ermittelt werden
- {{/swapPercent}}
+ {{/memTotal}}
</div>
<div class="clearfix"></div>
@@ -45,7 +45,7 @@
{{/swapWarning}}
<script type="text/javascript">
- {{#cpuLoad}}
+ {{#cpuLoadOk}}
Circles.create({
id: 'circles-cpuload',
radius: 60,
@@ -58,8 +58,8 @@
wrpClass: 'circles-wrp',
textClass: 'circles-text'
});
- {{/cpuLoad}}
- {{#memPercent}}
+ {{/cpuLoadOk}}
+ {{#memTotal}}
Circles.create({
id: 'circles-mem',
radius: 60,
@@ -72,8 +72,6 @@
wrpClass: 'circles-wrp',
textClass: 'circles-text'
});
- {{/memPercent}}
- {{#swapPercent}}
Circles.create({
id: 'circles-swap',
radius: 60,
@@ -86,5 +84,5 @@
wrpClass: 'circles-wrp',
textClass: 'circles-text'
});
- {{/swapPercent}}
+ {{/memTotal}}
</script> \ No newline at end of file