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/zfs_arc.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'plugin/zfs_arc.php') diff --git a/plugin/zfs_arc.php b/plugin/zfs_arc.php index 1cc7e81..d40912d 100644 --- a/plugin/zfs_arc.php +++ b/plugin/zfs_arc.php @@ -60,8 +60,7 @@ switch($obj->args['type']) { 'maxlimit', ); $obj->rrd_title = 'Arc size'; - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'bytes'; break; case 'arc_l2_bytes': $obj->data_sources = array( @@ -77,22 +76,20 @@ switch($obj->args['type']) { 'read' => '0000ff', ); $obj->rrd_title = 'Arc L2 bytes'; - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'bytes'; break; case 'arc_l2_size': $obj->data_sources = array( 'value', ); $obj->ds_names = array( - 'value' => ucfirst($CONFIG['datasize']), + 'value' => 'Bytes', ); $obj->colors = array( 'value' => '0000ff', ); $obj->rrd_title = 'Arc L2 size'; - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'bytes'; break; case 'arc_ratio': $obj->data_sources = array('value'); -- cgit v1.1