diff options
Diffstat (limited to 'plugin/postgresql.php')
-rw-r--r-- | plugin/postgresql.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/postgresql.php b/plugin/postgresql.php index 1eadc8d..ed984a6 100644 --- a/plugin/postgresql.php +++ b/plugin/postgresql.php | |||
@@ -51,7 +51,8 @@ switch($obj->args['type']) { | |||
51 | ); | 51 | ); |
52 | $obj->rrd_title = sprintf('PostgreSQL DB size (%s)', | 52 | $obj->rrd_title = sprintf('PostgreSQL DB size (%s)', |
53 | !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); | 53 | !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); |
54 | $obj->rrd_vertical = 'Bytes'; | 54 | $obj->rrd_vertical = ucfirst($CONFIG['datasize']); |
55 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | ||
55 | break; | 56 | break; |
56 | case 'pg_n_tup_c': | 57 | case 'pg_n_tup_c': |
57 | $obj->order = array( | 58 | $obj->order = array( |