summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2008-01-22 16:06:16 +0100
committerTobi Oetiker <tobi@oetiker.ch>2008-01-22 16:06:16 +0100
commit044a430a2c453780113aec59e37ee5160d777b0a (patch)
tree27a13c11ac6345f516586988fdc8b9124aad2b8f /lib/Smokeping
parent1c86305fb4234cf4e8d81c461dc515ef1db6ec06 (diff)
downloadsmokeping-044a430a2c453780113aec59e37ee5160d777b0a.tar.gz
smokeping-044a430a2c453780113aec59e37ee5160d777b0a.tar.xz
interated filter function to interface
Diffstat (limited to 'lib/Smokeping')
-rw-r--r--lib/Smokeping/Graphs.pm10
1 files changed, 5 insertions, 5 deletions
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 "<div>ERROR: ".(join ".", @dirs)." has no probe defined</div>"
unless $tree->{probe};