summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping
diff options
context:
space:
mode:
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};