aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/conntrack.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/conntrack.php')
-rw-r--r--plugin/conntrack.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugin/conntrack.php b/plugin/conntrack.php
index 2034a57..6c38776 100644
--- a/plugin/conntrack.php
+++ b/plugin/conntrack.php
@@ -27,14 +27,12 @@ $obj->rrd_format = '%.1lf';
27# the data source is named 'entropy' in collectd's types.db 27# the data source is named 'entropy' in collectd's types.db
28if ($CONFIG['version'] < 5) { 28if ($CONFIG['version'] < 5) {
29 $obj->data_sources = array('entropy'); 29 $obj->data_sources = array('entropy');
30 if (count($obj->ds_names) == 1) { 30
31 $obj->ds_names['entropy'] = $obj->ds_names['value']; 31 $obj->ds_names['entropy'] = $obj->ds_names['value'];
32 unset($obj->ds_names['value']); 32 unset($obj->ds_names['value']);
33 } 33
34 if (count($obj->colors) == 1) { 34 $obj->colors['entropy'] = $obj->colors['value'];
35 $obj->colors['entropy'] = $obj->colors['value']; 35 unset($obj->colors['value']);
36 unset($obj->colors['value']);
37 }
38} 36}
39 37
40collectd_flush($obj->identifiers); 38collectd_flush($obj->identifiers);