diff options
Diffstat (limited to 'plugin/nut.php')
| -rw-r--r-- | plugin/nut.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/nut.php b/plugin/nut.php index a1ade0e..06314f5 100644 --- a/plugin/nut.php +++ b/plugin/nut.php | |||
| @@ -43,7 +43,11 @@ switch($obj->args['type']) { | |||
| 43 | $obj->rrd_format = '%5.1lf%s'; | 43 | $obj->rrd_format = '%5.1lf%s'; |
| 44 | break; | 44 | break; |
| 45 | case 'timeleft': | 45 | case 'timeleft': |
| 46 | $obj->data_sources = array('timeleft'); | 46 | if ($CONFIG['version'] < 5) { |
| 47 | $obj->data_sources = array('timeleft'); | ||
| 48 | } else { | ||
| 49 | $obj->data_sources = array('value'); | ||
| 50 | } | ||
| 47 | $obj->ds_names = array('timeleft' => 'Timeleft'); | 51 | $obj->ds_names = array('timeleft' => 'Timeleft'); |
| 48 | $obj->rrd_title = sprintf('Timeleft (%s)', $obj->args['pinstance']); | 52 | $obj->rrd_title = sprintf('Timeleft (%s)', $obj->args['pinstance']); |
| 49 | $obj->rrd_vertical = 'Seconds'; | 53 | $obj->rrd_vertical = 'Seconds'; |
