diff options
Diffstat (limited to '')
-rw-r--r-- | inc/collectd.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 761f7c4..201d8ce 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
@@ -33,7 +33,10 @@ function get_host_rrd_files($dir) { | |||
33 | '/\.rrd$/'); | 33 | '/\.rrd$/'); |
34 | 34 | ||
35 | foreach($objects as $object) { | 35 | foreach($objects as $object) { |
36 | $files[] = str_replace($dir.'/', '', $object->getPathname()); | 36 | $relativePathName = str_replace($dir.'/', '', $object->getPathname()); |
37 | if (!preg_match('/^.+\/.+\.rrd$/', $relativePathName)) | ||
38 | continue; | ||
39 | $files[] = $relativePathName; | ||
37 | } | 40 | } |
38 | 41 | ||
39 | return $files; | 42 | return $files; |