aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
authorPim van den Berg2011-06-15 22:50:04 +0200
committerPim van den Berg2011-06-15 23:05:08 +0200
commitc29bbf1eacb7e2bd26f2b2d61992b675cdba1984 (patch)
treee5158accac5e3a76fd3aa8674617329f87bc0ba6 /plugin
parentplugin/entropy: collectd 5 compatibility (diff)
downloadapt-panopticon_cgp-c29bbf1eacb7e2bd26f2b2d61992b675cdba1984.zip
apt-panopticon_cgp-c29bbf1eacb7e2bd26f2b2d61992b675cdba1984.tar.gz
apt-panopticon_cgp-c29bbf1eacb7e2bd26f2b2d61992b675cdba1984.tar.bz2
apt-panopticon_cgp-c29bbf1eacb7e2bd26f2b2d61992b675cdba1984.tar.xz
plugin/ping: collectd 5 compatibility
Diffstat (limited to 'plugin')
-rw-r--r--plugin/ping.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/ping.php b/plugin/ping.php
index 9780969..f2845f1 100644
--- a/plugin/ping.php
+++ b/plugin/ping.php
@@ -23,7 +23,8 @@ $obj->rrd_format = '%5.1lf';
23 23
24switch($obj->args['type']) { 24switch($obj->args['type']) {
25 case 'ping': 25 case 'ping':
26 $obj->data_sources = array('ping'); 26 if ($CONFIG['version'] < 5)
27 $obj->data_sources = array('ping');
27 $obj->rrd_title = 'Ping latency'; 28 $obj->rrd_title = 'Ping latency';
28 $obj->rrd_vertical = 'Milliseconds'; 29 $obj->rrd_vertical = 'Milliseconds';
29 break; 30 break;