From c29bbf1eacb7e2bd26f2b2d61992b675cdba1984 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 15 Jun 2011 22:50:04 +0200 Subject: plugin/ping: collectd 5 compatibility --- plugin/ping.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin') 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'; switch($obj->args['type']) { case 'ping': - $obj->data_sources = array('ping'); + if ($CONFIG['version'] < 5) + $obj->data_sources = array('ping'); $obj->rrd_title = 'Ping latency'; $obj->rrd_vertical = 'Milliseconds'; break; -- cgit v1.1