From fc9d545ce142680a5fb1fedfd0286c0acd0e1ebe Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 5 Jun 2008 06:56:06 +0000 Subject: add the hash to the hostname --- lib/Smokeping.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 98ad8d1..63d2905 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -645,11 +645,13 @@ sub target_menu($$$$;$){ $host = $tree->{$key}{host}; $menuextra = $tree->{$key}{menuextra}; next if $tree->{$key}{hide} and $tree->{$key}{hide} eq 'yes'; - }; + } + # no menuextra for multihost if (not $host or $host =~ m|^/|){ $menuextra = undef; } + my $class = 'menuitem'; if ($key eq $current ){ if ( @$open ) { @@ -659,7 +661,7 @@ sub target_menu($$$$;$){ } }; if ($menuextra){ - $menuextra =~ s/{HOST}/$host/g; + $menuextra =~ s/{HOST}/#$host/g; $menuextra =~ s/{CLASS}/$class/g; $menuextra = ' '.$menuextra; } else { -- cgit v1.2.3-24-g4f1b