From 074589c36937a468587abe37bc4ce0fbddf80b20 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 5 Sep 2012 16:07:44 +0200 Subject: apply datasize (bytes/bits) only to network related data As discussed in https://github.com/pommi/CGP/pull/1. --- plugin/apache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin/apache.php') 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']) { case 'apache_bytes': $obj->data_sources = array('value'); $obj->ds_names = array( - 'value' => sprintf('%s/s', ucfirst($CONFIG['datasize'])), + 'value' => sprintf('%s/s', ucfirst($CONFIG['network_datasize'])), ); $obj->colors = array( 'value' => '0000ff', ); $obj->rrd_title = sprintf('Webserver Traffic%s', !empty($obj->args['pinstance']) ? ' ('.$obj->args['pinstance'].')' : ''); - $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['datasize'])); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = sprintf('%s/s', ucfirst($CONFIG['network_datasize'])); + $obj->scale = $CONFIG['network_datasize'] == 'bits' ? 8 : 1; break; case 'apache_connections': $obj->data_sources = array('value'); -- cgit v1.1