diff options
author | Pim van den Berg | 2012-09-05 16:07:44 +0200 |
---|---|---|
committer | Pim van den Berg | 2012-09-05 16:10:39 +0200 |
commit | 074589c36937a468587abe37bc4ce0fbddf80b20 (patch) | |
tree | 921ffd1e49dde8bd21f625409f12d70251f3204b /plugin/memory.php | |
parent | plugin: add snmp plugin (diff) | |
download | apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.zip apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.gz apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.bz2 apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.xz |
apply datasize (bytes/bits) only to network related data
As discussed in https://github.com/pommi/CGP/pull/1.
Diffstat (limited to '')
-rw-r--r-- | plugin/memory.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/memory.php b/plugin/memory.php index afccc55..14779e2 100644 --- a/plugin/memory.php +++ b/plugin/memory.php | |||
@@ -33,8 +33,7 @@ $obj->width = $width; | |||
33 | $obj->heigth = $heigth; | 33 | $obj->heigth = $heigth; |
34 | 34 | ||
35 | $obj->rrd_title = 'Physical memory utilization'; | 35 | $obj->rrd_title = 'Physical memory utilization'; |
36 | $obj->rrd_vertical = ucfirst($CONFIG['datasize']); | 36 | $obj->rrd_vertical = 'Bytes'; |
37 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | ||
38 | $obj->rrd_format = '%5.1lf%s'; | 37 | $obj->rrd_format = '%5.1lf%s'; |
39 | 38 | ||
40 | collectd_flush($obj->identifiers); | 39 | collectd_flush($obj->identifiers); |