From 3c302f872d52e70618926ce3d172f0a9b32b1741 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Wed, 27 Sep 2000 04:08:33 +0000 Subject: [PATCH] Fix default value of $WWW_DEFAULT_VIEW. Add SPONGSLEEP check code from other programs (was still depending on the old $SPONGSLEEP). Fix missing in left frame view. --- src/www-spong.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/www-spong.pl b/src/www-spong.pl index 0752023..a0b8bdc 100755 --- a/src/www-spong.pl +++ b/src/www-spong.pl @@ -37,7 +37,11 @@ $interactive = 0; &load_config_files(); # Loads the user specified configuration information -$main::WWW_DEFAULT_VIEW = "HOST" unless $main::WWW_DEFAULT_VIEW; +$main::WWW_DEFAULT_VIEW = "HOSTS" unless $main::WWW_DEFAULT_VIEW; + +# Find our SPONGSLEEP value +$SPONGSLEEP = $SPONGSLEEP{'www-spong'} || $SPONGSLEEP{'DEFAULT'} || + $SPONGSLEEP || 300; # Check to see if I am being run as a command line program (in which case I # just generate static HTML documents), or a CGI program (in which case I @@ -267,8 +271,8 @@ sub commands { print "Hosts View\n"; unless ($WWWFRAMES == 3) { print "
\n"; - print "Views: Groups || \n"; - print "Hosts \n"; + print "Views: Groups"; + print " || \nHosts \n"; } print "
\n"; -- 2.30.2