summaryrefslogtreecommitdiff
path: root/html/memory.tmpl
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-12-08 08:35:18 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-12-08 08:35:18 +0000
commitd986ff1c851b7169d5d9537b03858eaaaae621d1 (patch)
tree6b74b9b96600c4a31c3b2d406bdc7c425f97ee08 /html/memory.tmpl
parenta2b756c0349f83e8bfa860a24a0255d0cd09fb8f (diff)
downloadxxv-d986ff1c851b7169d5d9537b03858eaaaae621d1.tar.gz
xxv-d986ff1c851b7169d5d9537b03858eaaaae621d1.tar.bz2
* MEDIALIB: Add image if no actor image present
* MEDIALIB: Align image at middle * STATUS: avoid some filter warning (is'nt numeric) * RECORDS: don't use inotify as global object * RECORDS: delayed preview image generation
Diffstat (limited to 'html/memory.tmpl')
-rw-r--r--html/memory.tmpl14
1 files changed, 11 insertions, 3 deletions
diff --git a/html/memory.tmpl b/html/memory.tmpl
index bfc8fa6..1d1d980 100644
--- a/html/memory.tmpl
+++ b/html/memory.tmpl
@@ -33,7 +33,7 @@
USE my_graph = GD.Graph.lines(500,300);
# Xsteps
- steps = param.stack.size / 5 | format('%d');
+ steps = param.stack.size div 5;
label = gettext('Memory usage since');
label = "${label} ${d.first.first}";
@@ -64,13 +64,21 @@
# ------------------- Piegraph für Speicher
FILTER null;
name = 'memory_now';
+ MemTotal = data.MemTotal div 1024;
+ Active = data.Active div 1024;
+ Cached = data.Cached div 1024;
+ Inactive = data.Inactive div 1024;
+ MemFree = data.MemFree div 1024;
+ Buffers = data.Buffers div 1024;
+
d2 = [
- ["Active ${data.Active}","Cached ${data.Cached}","Inactive ${data.Inactive}","MemFree ${data.MemFree}","Buffers ${data.Buffers}"],
+ ["Active ${Active} MB","Cached ${Cached} MB","Inactive ${Inactive} MB","MemFree ${MemFree} MB","Buffers ${Buffers} MB"],
[ data.Active, data.Cached, data.Inactive, data.MemFree, data.Buffers]
];
+
USE my_graph = GD.Graph.pie(400, 300);
label = gettext('Total Memory');
- label = "${label} ${data.MemTotal}";
+ label = "${label} ${MemTotal} MB";
my_graph.set(
title => label,
axislabelclr => 'black',