aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorErik Grinaker2011-09-10 15:46:21 +0200
committerPim van den Berg2011-09-10 15:46:21 +0200
commit08f3b1fc85f30f3272d1fe9833dd538ea0cc199c (patch)
tree990b80b0c4f37af7751343a2b39a0aa3e36879c8 /plugin
parenttype: escape colons in filenames used in rrd commandline (diff)
downloadapt-panopticon_cgp-08f3b1fc85f30f3272d1fe9833dd538ea0cc199c.zip
apt-panopticon_cgp-08f3b1fc85f30f3272d1fe9833dd538ea0cc199c.tar.gz
apt-panopticon_cgp-08f3b1fc85f30f3272d1fe9833dd538ea0cc199c.tar.bz2
apt-panopticon_cgp-08f3b1fc85f30f3272d1fe9833dd538ea0cc199c.tar.xz
plugin/cpu: default scale to 100%
To be able to easily compare graphs with different max values.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/cpu.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/cpu.php b/plugin/cpu.php
index 4c049d6..a0a19fc 100644
--- a/plugin/cpu.php
+++ b/plugin/cpu.php
@@ -46,6 +46,7 @@ $obj->heigth = $heigth;
46$obj->rrd_title = sprintf('CPU-%s usage', $obj->args['pinstance']); 46$obj->rrd_title = sprintf('CPU-%s usage', $obj->args['pinstance']);
47$obj->rrd_vertical = 'Jiffies'; 47$obj->rrd_vertical = 'Jiffies';
48$obj->rrd_format = '%5.2lf'; 48$obj->rrd_format = '%5.2lf';
49$obj->rrdtool_opts .= ' -u 100';
49 50
50collectd_flush($obj->identifiers); 51collectd_flush($obj->identifiers);
51$obj->rrd_graph(); 52$obj->rrd_graph();