aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugin/nut.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin/nut.php b/plugin/nut.php
index 06314f5..7f0568d 100644
--- a/plugin/nut.php
+++ b/plugin/nut.php
@@ -17,7 +17,11 @@ require_once 'inc/collectd.inc.php';
17$obj = new Type_Default($CONFIG); 17$obj = new Type_Default($CONFIG);
18switch($obj->args['type']) { 18switch($obj->args['type']) {
19 case 'frequency': 19 case 'frequency':
20 $obj->data_sources = array('value'); 20 if ($CONFIG['version'] < 5) {
21 $obj->data_sources = array('frequency');
22 } else {
23 $obj->data_sources = array('value');
24 }
21 $obj->ds_names = array('output' => 'Output'); 25 $obj->ds_names = array('output' => 'Output');
22 $obj->rrd_title = sprintf('Frequency (%s)', $obj->args['pinstance']); 26 $obj->rrd_title = sprintf('Frequency (%s)', $obj->args['pinstance']);
23 $obj->rrd_vertical = 'Hz'; 27 $obj->rrd_vertical = 'Hz';