aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/collectd.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r--inc/collectd.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php
index ab4340f..fde3267 100644
--- a/inc/collectd.inc.php
+++ b/inc/collectd.inc.php
@@ -112,7 +112,9 @@ function graphs_from_plugin($host, $plugin) {
112 $ts = collectd_plugindetail($host, $plugin, 't'); 112 $ts = collectd_plugindetail($host, $plugin, 't');
113 $tis = collectd_plugindetail($host, $plugin, 'ti'); 113 $tis = collectd_plugindetail($host, $plugin, 'ti');
114 if (!$pis) $pis = array('NULL'); 114 if (!$pis) $pis = array('NULL');
115 if (!$tis || $CONFIG['groupby'][$plugin] == 'type') 115 if (!$tis) $tis = array('NULL');
116 # backwards compatibility
117 if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $plugin))
116 $tis = array('NULL'); 118 $tis = array('NULL');
117 119
118 foreach($pis as $pi) { 120 foreach($pis as $pi) {