diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-01-21 23:18:48 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-01-21 23:18:48 +0100 |
commit | 88c73fdb0c653f6366a06c21aa9c055245b8641a (patch) | |
tree | 84e9c0fe88aa94a291e43831bd4bd603a84e8acc /lib/Smokeping/Graphs.pm | |
parent | f0d944ab93f7603843ba3a8ec825261d339c7eef (diff) | |
download | smokeping-88c73fdb0c653f6366a06c21aa9c055245b8641a.tar.gz smokeping-88c73fdb0c653f6366a06c21aa9c055245b8641a.tar.xz |
added alternate presentation hierarchies. Configure via Presentation->hierarchies and
Targets ... -> parents -- tobi
Diffstat (limited to 'lib/Smokeping/Graphs.pm')
-rw-r--r-- | lib/Smokeping/Graphs.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Smokeping/Graphs.pm b/lib/Smokeping/Graphs.pm index 284ab33..2a2894b 100644 --- a/lib/Smokeping/Graphs.pm +++ b/lib/Smokeping/Graphs.pm @@ -34,9 +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 @dirs = @{$open}; + my @dirs = @{$open_phys}; return "<div>ERROR: ".(join ".", @dirs)." has no probe defined</div>" unless $tree->{probe}; @@ -291,6 +295,7 @@ sub get_multi_detail ($$$$;$){ . $q->hidden(-name=>'epoch_start',-id=>'epoch_start',-default=>$start) . $q->hidden(-name=>'epoch_end',-id=>'epoch_end',-default=>time()) . $q->hidden(-name=>'target',-id=>'target' ) + . $q->hidden(-name=>'hierarchy',-id=>'hierarchy' ) . $q->hidden(-name=>'displaymode',-default=>$mode ) . " " . $q->submit(-name=>'Generate!') |