From cccab059618a2e2247ee1841a3fcdb456be8607b Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 13 Nov 2013 13:56:33 +0100 Subject: [PATCH] MT#4971 Fix follow symlink sp-SELF in statistics. --- lib/NGCP/Panel/Utils/Statistics.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Statistics.pm b/lib/NGCP/Panel/Utils/Statistics.pm index b345771540..927c72ab68 100644 --- a/lib/NGCP/Panel/Utils/Statistics.pm +++ b/lib/NGCP/Panel/Utils/Statistics.pm @@ -28,7 +28,8 @@ sub get_host_list { sub get_host_subdirs { my ($host) = @_; - my @dirs = File::Find::Rule->directory + my $rule = File::Find::Rule->extras({ follow => 1 }); + my @dirs = $rule->directory ->mindepth( 1 ) ->maxdepth( 1 ) ->in('/var/lib/collectd/rrd/' . $host);