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/netlink.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/netlink.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/netlink.php b/plugin/netlink.php index 77c0c48..146545e 100644 --- a/plugin/netlink.php +++ b/plugin/netlink.php | |||
@@ -64,8 +64,8 @@ switch($obj->args['type']) { | |||
64 | 'tx' => '00b000', | 64 | 'tx' => '00b000', |
65 | ); | 65 | ); |
66 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args['pinstance']); | 66 | $obj->rrd_title = sprintf('Interface Traffic (%s)', $obj->args['pinstance']); |
67 | $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['datasize'])); | 67 | $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['network_datasize'])); |
68 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 68 | $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; |
69 | break; | 69 | break; |
70 | case 'if_packets': | 70 | case 'if_packets': |
71 | $obj->data_sources = array('rx', 'tx'); | 71 | $obj->data_sources = array('rx', 'tx'); |