From f0db176e8c1e90bcce8da408648917d3e8243386 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 4 Jul 2011 21:07:22 +0200 Subject: plugin/libvirt: collectd 5 compatibility --- inc/collectd.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 51aedba..11dc91f 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php @@ -107,8 +107,9 @@ function group_plugindata($plugindata) { # type instances should be grouped in 1 graph foreach ($plugindata as $item) { # backwards compatibility - if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface|libvirt)$/', $item['p'])) - unset($item['ti']); + if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) + if($item['p'] != 'libvirt') + unset($item['ti']); $data[] = $item; } -- cgit v1.1