diff options
| author | Pim van den Berg | 2011-06-15 22:50:04 +0200 |
|---|---|---|
| committer | Pim van den Berg | 2011-06-15 23:05:08 +0200 |
| commit | c29bbf1eacb7e2bd26f2b2d61992b675cdba1984 (patch) | |
| tree | e5158accac5e3a76fd3aa8674617329f87bc0ba6 | |
| parent | plugin/entropy: collectd 5 compatibility (diff) | |
| download | apt-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
| -rw-r--r-- | plugin/ping.php | 3 |
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 | ||
| 24 | switch($obj->args['type']) { | 24 | switch($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; |
