diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/collectd.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
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) { | |||
107 | # type instances should be grouped in 1 graph | 107 | # type instances should be grouped in 1 graph |
108 | foreach ($plugindata as $item) { | 108 | foreach ($plugindata as $item) { |
109 | # backwards compatibility | 109 | # backwards compatibility |
110 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface|libvirt)$/', $item['p'])) | 110 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) |
111 | unset($item['ti']); | 111 | if($item['p'] != 'libvirt') |
112 | unset($item['ti']); | ||
112 | $data[] = $item; | 113 | $data[] = $item; |
113 | } | 114 | } |
114 | 115 | ||