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/postgresql.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugin/postgresql.php') diff --git a/plugin/postgresql.php b/plugin/postgresql.php index ed984a6..1eadc8d 100644 --- a/plugin/postgresql.php +++ b/plugin/postgresql.php @@ -51,8 +51,7 @@ switch($obj->args['type']) { ); $obj->rrd_title = sprintf('PostgreSQL DB size (%s)', !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); - $obj->rrd_vertical = ucfirst($CONFIG['datasize']); - $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; + $obj->rrd_vertical = 'Bytes'; break; case 'pg_n_tup_c': $obj->order = array( -- cgit v1.1