From 044a430a2c453780113aec59e37ee5160d777b0a Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Tue, 22 Jan 2008 15:06:16 +0000 Subject: interated filter function to interface --- lib/Smokeping/Graphs.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Smokeping') diff --git a/lib/Smokeping/Graphs.pm b/lib/Smokeping/Graphs.pm index 2a2894b..85ed2b7 100644 --- a/lib/Smokeping/Graphs.pm +++ b/lib/Smokeping/Graphs.pm @@ -34,13 +34,13 @@ sub get_multi_detail ($$$$;$){ my $tree = shift; my $open = shift; my $mode = shift || $q->param('displaymode') || 's'; - my $open_phys = $open; - if ($tree->{__real_path}){ - $open_phys = $tree->{__real_path}; + my $phys_open = $open; + if ($tree->{__tree_link}){ + $tree=$tree->{__tree_link}; + $phys_open = $tree->{__real_path}; } - - my @dirs = @{$open_phys}; + my @dirs = @{$phys_open}; return "
ERROR: ".(join ".", @dirs)." has no probe defined
" unless $tree->{probe}; -- cgit v1.2.3-24-g4f1b