diff options
author | Pim van den Berg | 2011-03-10 20:20:11 +0100 |
---|---|---|
committer | Pim van den Berg | 2011-03-10 20:23:44 +0100 |
commit | 3f694cb04f5351a40140e4fc9a35909f65321baf (patch) | |
tree | a836d02b9fc36b1da47b30cb644d30aca6b27195 /plugin/postgresql.php | |
parent | plugin/postgresql: make postgresql plugin compatible with cgp (diff) | |
download | apt-panopticon_cgp-3f694cb04f5351a40140e4fc9a35909f65321baf.zip apt-panopticon_cgp-3f694cb04f5351a40140e4fc9a35909f65321baf.tar.gz apt-panopticon_cgp-3f694cb04f5351a40140e4fc9a35909f65321baf.tar.bz2 apt-panopticon_cgp-3f694cb04f5351a40140e4fc9a35909f65321baf.tar.xz |
plugin/postgresql: create fallback for unknown types
Diffstat (limited to '')
-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 596f590..9680a4f 100644 --- a/plugin/postgresql.php +++ b/plugin/postgresql.php | |||
@@ -38,8 +38,7 @@ switch($obj->args['type']) { | |||
38 | !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); | 38 | !empty($obj->args['pinstance']) ? $obj->args['pinstance'] : ''); |
39 | $obj->rrd_vertical = 'Size'; | 39 | $obj->rrd_vertical = 'Size'; |
40 | break; | 40 | break; |
41 | case 'pg_blks': | 41 | default: |
42 | case 'pg_n_tup_c': | ||
43 | $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); | 42 | $obj->rrd_title = sprintf('%s/%s', $obj->args['pinstance'], $obj->args['type']); |
44 | $obj->rrd_vertical = 'Ops per second'; | 43 | $obj->rrd_vertical = 'Ops per second'; |
45 | break; | 44 | break; |