diff options
Diffstat (limited to 'inc/collectd.inc.php')
| -rw-r--r-- | inc/collectd.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 3c016af..3aef6b8 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
| @@ -30,7 +30,7 @@ function collectd_plugindata($host, $plugin=NULL) { | |||
| 30 | $files = glob("*/*.rrd"); | 30 | $files = glob("*/*.rrd"); |
| 31 | if (!$files) | 31 | if (!$files) |
| 32 | return false; | 32 | return false; |
| 33 | 33 | ||
| 34 | $data = array(); | 34 | $data = array(); |
| 35 | foreach($files as $item) { | 35 | foreach($files as $item) { |
| 36 | preg_match('` | 36 | preg_match('` |
| @@ -73,7 +73,7 @@ function collectd_plugins($host) { | |||
| 73 | if (!in_array($item['p'], $plugins)) | 73 | if (!in_array($item['p'], $plugins)) |
| 74 | $plugins[] = $item['p']; | 74 | $plugins[] = $item['p']; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | return $plugins; | 77 | return $plugins; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| @@ -105,7 +105,7 @@ function collectd_plugindetail($host, $plugin, $detail, $where=NULL) { | |||
| 105 | 105 | ||
| 106 | if (empty($return)) | 106 | if (empty($return)) |
| 107 | return false; | 107 | return false; |
| 108 | 108 | ||
| 109 | return $return; | 109 | return $return; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| @@ -171,7 +171,7 @@ function build_url($base, $items, $s=NULL) { | |||
| 171 | 171 | ||
| 172 | if (!is_array($items)) | 172 | if (!is_array($items)) |
| 173 | return false; | 173 | return false; |
| 174 | 174 | ||
| 175 | if (!is_numeric($s)) | 175 | if (!is_numeric($s)) |
| 176 | $s = $CONFIG['time_range']['default']; | 176 | $s = $CONFIG['time_range']['default']; |
| 177 | 177 | ||
