aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorPim van den Berg2011-03-10 20:20:11 +0100
committerPim van den Berg2011-03-10 20:23:44 +0100
commit3f694cb04f5351a40140e4fc9a35909f65321baf (patch)
treea836d02b9fc36b1da47b30cb644d30aca6b27195 /plugin
parentplugin/postgresql: make postgresql plugin compatible with cgp (diff)
downloadapt-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 'plugin')
-rw-r--r--plugin/postgresql.php3
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;