diff options
author | Pim van den Berg | 2012-09-05 16:07:44 +0200 |
---|---|---|
committer | Pim van den Berg | 2012-09-05 16:10:39 +0200 |
commit | 074589c36937a468587abe37bc4ce0fbddf80b20 (patch) | |
tree | 921ffd1e49dde8bd21f625409f12d70251f3204b /plugin/postgresql.php | |
parent | plugin: add snmp plugin (diff) | |
download | apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.zip apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.gz apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.bz2 apt-panopticon_cgp-074589c36937a468587abe37bc4ce0fbddf80b20.tar.xz |
apply datasize (bytes/bits) only to network related data
As discussed in https://github.com/pommi/CGP/pull/1.
Diffstat (limited to 'plugin/postgresql.php')
-rw-r--r-- | plugin/postgresql.php | 3 |
1 files changed, 1 insertions, 2 deletions
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']) { | |||
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 = ucfirst($CONFIG['datasize']); | 54 | $obj->rrd_vertical = 'Bytes'; |
55 | $obj->scale = $CONFIG['datasize'] == 'bits' ? 8 : 1; | ||
56 | break; | 55 | break; |
57 | case 'pg_n_tup_c': | 56 | case 'pg_n_tup_c': |
58 | $obj->order = array( | 57 | $obj->order = array( |