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/interface.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/interface.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/interface.php b/plugin/interface.php index 107cb27..777f953 100644 --- a/plugin/interface.php +++ b/plugin/interface.php | |||
@@ -39,8 +39,8 @@ switch($obj->args['type']) { | |||
39 | break; | 39 | break; |
40 | case 'if_octets': | 40 | case 'if_octets': |
41 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args[$instance]); | 41 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args[$instance]); |
42 | $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize'])); | 42 | $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['network_datasize'])); |
43 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 43 | $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; |
44 | break; | 44 | break; |
45 | case 'if_packets': | 45 | case 'if_packets': |
46 | $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args[$instance]); | 46 | $obj->rrd_title = sprintf('Interface Packets (%s)', $obj->args[$instance]); |