diff options
Diffstat (limited to 'plugin/postgresql.php')
| -rw-r--r-- | plugin/postgresql.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugin/postgresql.php b/plugin/postgresql.php index 4c2a62f..4cfae41 100644 --- a/plugin/postgresql.php +++ b/plugin/postgresql.php | |||
| @@ -25,7 +25,7 @@ $obj->rrd_format = '%5.1lf%s'; | |||
| 25 | 25 | ||
| 26 | switch($obj->args['type']) { | 26 | switch($obj->args['type']) { |
| 27 | case 'pg_blks': | 27 | case 'pg_blks': |
| 28 | $obj->ds_names = array( | 28 | $obj->legend = array( |
| 29 | 'heap_hit' => 'Heap hit', | 29 | 'heap_hit' => 'Heap hit', |
| 30 | 'heap_read' => 'Heap read', | 30 | 'heap_read' => 'Heap read', |
| 31 | 'idx_hit' => 'Index hit', | 31 | 'idx_hit' => 'Index hit', |
| @@ -40,7 +40,7 @@ switch($obj->args['type']) { | |||
| 40 | $obj->rrd_vertical = 'Blocks'; | 40 | $obj->rrd_vertical = 'Blocks'; |
| 41 | break; | 41 | break; |
| 42 | case 'pg_db_size': | 42 | case 'pg_db_size': |
| 43 | $obj->ds_names = array( | 43 | $obj->legend = array( |
| 44 | 'value' => 'Size', | 44 | 'value' => 'Size', |
| 45 | ); | 45 | ); |
| 46 | $obj->colors = array( | 46 | $obj->colors = array( |
| @@ -57,7 +57,7 @@ switch($obj->args['type']) { | |||
| 57 | 'hot_upd', | 57 | 'hot_upd', |
| 58 | 'del', | 58 | 'del', |
| 59 | ); | 59 | ); |
| 60 | $obj->ds_names = array( | 60 | $obj->legend = array( |
| 61 | 'ins' => 'Insert', | 61 | 'ins' => 'Insert', |
| 62 | 'upd' => 'Update', | 62 | 'upd' => 'Update', |
| 63 | 'hot_upd' => 'Hot Update', | 63 | 'hot_upd' => 'Hot Update', |
| @@ -75,7 +75,7 @@ switch($obj->args['type']) { | |||
| 75 | break; | 75 | break; |
| 76 | case 'pg_n_tup_g': | 76 | case 'pg_n_tup_g': |
| 77 | $obj->order = array('live', 'dead'); | 77 | $obj->order = array('live', 'dead'); |
| 78 | $obj->ds_names = array( | 78 | $obj->legend = array( |
| 79 | 'live' => 'Live', | 79 | 'live' => 'Live', |
| 80 | 'dead' => 'Dead', | 80 | 'dead' => 'Dead', |
| 81 | ); | 81 | ); |
| @@ -88,7 +88,7 @@ switch($obj->args['type']) { | |||
| 88 | $obj->rrd_vertical = 'Rows'; | 88 | $obj->rrd_vertical = 'Rows'; |
| 89 | break; | 89 | break; |
| 90 | case 'pg_numbackends': | 90 | case 'pg_numbackends': |
| 91 | $obj->ds_names = array( | 91 | $obj->legend = array( |
| 92 | 'value' => 'Backends', | 92 | 'value' => 'Backends', |
| 93 | ); | 93 | ); |
| 94 | $obj->colors = array( | 94 | $obj->colors = array( |
| @@ -99,7 +99,7 @@ switch($obj->args['type']) { | |||
| 99 | $obj->rrd_vertical = 'Number'; | 99 | $obj->rrd_vertical = 'Number'; |
| 100 | break; | 100 | break; |
| 101 | case 'pg_scan': | 101 | case 'pg_scan': |
| 102 | $obj->ds_names = array( | 102 | $obj->legend = array( |
| 103 | 'seq' => 'Sequential', | 103 | 'seq' => 'Sequential', |
| 104 | 'seq_tup_read' => 'Sequential rows', | 104 | 'seq_tup_read' => 'Sequential rows', |
| 105 | 'idx' => 'Index', | 105 | 'idx' => 'Index', |
| @@ -110,7 +110,7 @@ switch($obj->args['type']) { | |||
| 110 | $obj->rrd_vertical = 'Scans / Rows'; | 110 | $obj->rrd_vertical = 'Scans / Rows'; |
| 111 | break; | 111 | break; |
| 112 | case 'pg_xact': | 112 | case 'pg_xact': |
| 113 | $obj->ds_names = array( | 113 | $obj->legend = array( |
| 114 | 'commit' => 'Commit', | 114 | 'commit' => 'Commit', |
| 115 | 'rollback' => 'Rollback', | 115 | 'rollback' => 'Rollback', |
| 116 | ); | 116 | ); |
