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/df.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/df.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugin/df.php b/plugin/df.php index 33dded9..b5c7e73 100644 --- a/plugin/df.php +++ b/plugin/df.php | |||
| @@ -29,9 +29,8 @@ $obj->width = $width; | |||
| 29 | $obj->heigth = $heigth; | 29 | $obj->heigth = $heigth; |
| 30 | 30 | ||
| 31 | $obj->rrd_title = sprintf('Free space (%s)', $obj->args['pinstance']); | 31 | $obj->rrd_title = sprintf('Free space (%s)', $obj->args['pinstance']); |
| 32 | $obj->rrd_vertical = ucfirst($CONFIG['datasize']); | 32 | $obj->rrd_vertical = 'Bytes'; |
| 33 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 33 | $obj->rrd_format = '%5.1lf%sB'; |
| 34 | $obj->rrd_format = '%5.1lf%s'; | ||
| 35 | 34 | ||
| 36 | # backwards compatibility | 35 | # backwards compatibility |
| 37 | if ($CONFIG['version'] < 5) { | 36 | if ($CONFIG['version'] < 5) { |
