Change sleeptime for logfile action to 1
authorGreg Sabino Mullane <[email protected]>
Thu, 11 Feb 2010 15:49:52 +0000 (10:49 -0500)
committerGreg Sabino Mullane <[email protected]>
Thu, 11 Feb 2010 15:49:52 +0000 (10:49 -0500)
check_postgres.pl

index 2f0793c75738cd2b33ea3645467c34443872ba11..927ba6b8dc42af88790899e56ec32bfc5e2e5ab7 100755 (executable)
@@ -3774,8 +3774,8 @@ sub check_logfile {
                delete @{$db}{qw(ok slurp totaltime)};
                my $badinfo = run_command("$funky", {failok => 1, target => $db} );
 
-               my $MAXSLEEPTIME = $opt{timeout} || 45;
-               my $SLEEP = 0.5;
+               my $MAXSLEEPTIME = $opt{timeout} || 20;
+               my $SLEEP = 1;
                my $found = 0;
                LOGWAIT: {
                        sleep $SLEEP;
@@ -8073,9 +8073,10 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =over 4
 
-=item B<Version 2.14.0>
+=item B<Version 2.14.0> (February 11, 2010)
 
   Added the 'slony_status' action.
+  Changed the logfile sleep from 0.5 to 1, as 0.5 gets rounded to 0 on some boxes!
 
 =item B<Version 2.13.2> (February 4, 2010)