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/apache.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 'plugin/apache.php')
-rw-r--r-- | plugin/apache.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/apache.php b/plugin/apache.php index 71be4fe..c942255 100644 --- a/plugin/apache.php +++ b/plugin/apache.php | |||
@@ -19,15 +19,15 @@ switch ($obj->args['type']) { | |||
19 | case 'apache_bytes': | 19 | case 'apache_bytes': |
20 | $obj->data_sources = array('value'); | 20 | $obj->data_sources = array('value'); |
21 | $obj->ds_names = array( | 21 | $obj->ds_names = array( |
22 | 'value' => sprintf('%s/s', ucfirst($CONFIG['datasize'])), | 22 | 'value' => sprintf('%s/s', ucfirst($CONFIG['network_datasize'])), |
23 | ); | 23 | ); |
24 | $obj->colors = array( | 24 | $obj->colors = array( |
25 | 'value' => '0000ff', | 25 | 'value' => '0000ff', |
26 | ); | 26 | ); |
27 | $obj->rrd_title = sprintf('Webserver Traffic%s', | 27 | $obj->rrd_title = sprintf('Webserver Traffic%s', |
28 | !empty($obj->args['pinstance']) ? ' ('.$obj->args['pinstance'].')' : ''); | 28 | !empty($obj->args['pinstance']) ? ' ('.$obj->args['pinstance'].')' : ''); |
29 | $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['datasize'])); | 29 | $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['network_datasize'])); |
30 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | 30 | $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; |
31 | break; | 31 | break; |
32 | case 'apache_connections': | 32 | case 'apache_connections': |
33 | $obj->data_sources = array('value'); | 33 | $obj->data_sources = array('value'); |