diff options
author | Erik Grinaker | 2011-09-10 15:46:21 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-09-10 15:46:21 +0200 |
commit | 08f3b1fc85f30f3272d1fe9833dd538ea0cc199c (patch) | |
tree | 990b80b0c4f37af7751343a2b39a0aa3e36879c8 | |
parent | type: escape colons in filenames used in rrd commandline (diff) | |
download | apt-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.
-rw-r--r-- | plugin/cpu.php | 1 |
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 | ||
50 | collectd_flush($obj->identifiers); | 51 | collectd_flush($obj->identifiers); |
51 | $obj->rrd_graph(); | 52 | $obj->rrd_graph(); |