diff options
Diffstat (limited to 'plugin/contextswitch.php')
| -rw-r--r-- | plugin/contextswitch.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/contextswitch.php b/plugin/contextswitch.php index 71f6d9d..24ba7f2 100644 --- a/plugin/contextswitch.php +++ b/plugin/contextswitch.php | |||
| @@ -10,7 +10,7 @@ require_once 'type/Default.class.php'; | |||
| 10 | 10 | ||
| 11 | $obj = new Type_Default($CONFIG, $_GET); | 11 | $obj = new Type_Default($CONFIG, $_GET); |
| 12 | $obj->data_sources = array('value'); | 12 | $obj->data_sources = array('value'); |
| 13 | $obj->ds_names = array( | 13 | $obj->legend = array( |
| 14 | 'value' => 'Context switches', | 14 | 'value' => 'Context switches', |
| 15 | ); | 15 | ); |
| 16 | $obj->colors = array( | 16 | $obj->colors = array( |
| @@ -24,8 +24,8 @@ $obj->rrd_format = '%4.0lf'; | |||
| 24 | if ($CONFIG['version'] < 5) { | 24 | if ($CONFIG['version'] < 5) { |
| 25 | $obj->data_sources = array('contextswitches'); | 25 | $obj->data_sources = array('contextswitches'); |
| 26 | 26 | ||
| 27 | $obj->ds_names['contextswitches'] = $obj->ds_names['value']; | 27 | $obj->legend['contextswitches'] = $obj->legend['value']; |
| 28 | unset($obj->ds_names['value']); | 28 | unset($obj->legend['value']); |
| 29 | 29 | ||
| 30 | $obj->colors['contextswitches'] = $obj->colors['value']; | 30 | $obj->colors['contextswitches'] = $obj->colors['value']; |
| 31 | unset($obj->colors['value']); | 31 | unset($obj->colors['value']); |
