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/df.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugin/df.php') diff --git a/plugin/df.php b/plugin/df.php index 33dded9..b5c7e73 100644 --- a/plugin/df.php +++ b/plugin/df.php @@ -29,9 +29,8 @@ $obj->width = $width; $obj->heigth = $heigth; $obj->rrd_title = sprintf('Free space (%s)', $obj->args['pinstance']); -$obj->rrd_vertical = ucfirst($CONFIG['datasize']); -$obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; -$obj->rrd_format = '%5.1lf%s'; +$obj->rrd_vertical = 'Bytes'; +$obj->rrd_format = '%5.1lf%sB'; # backwards compatibility if ($CONFIG['version'] < 5) { -- cgit v1.1