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/disk.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugin/disk.php') diff --git a/plugin/disk.php b/plugin/disk.php index a776abd..e3a5f3d 100644 --- a/plugin/disk.php +++ b/plugin/disk.php @@ -33,9 +33,8 @@ switch($obj->args['type']) { break; case 'disk_octets': $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['pinstance']); - $obj->rrd_vertical = sprintf('%s per second', ucfirst($CONFIG['datasize'])); + $obj->rrd_vertical = 'Bytes per second'; $obj->rrd_format = '%5.1lf%s'; - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; break; case 'disk_ops': $obj->rrd_title = sprintf('Disk Operations (%s)', $obj->args['pinstance']); -- cgit v1.1