reverse the if statement to reduce indenting

This commit is contained in:
Isaac Connor 2015-06-19 08:59:49 -04:00
parent 5dd1c6cf38
commit a9175705c1
1 changed files with 55 additions and 57 deletions

View File

@ -85,8 +85,7 @@ while( 1 )
or Fatal( "Can't execute: ".$sth->errstr() ); or Fatal( "Can't execute: ".$sth->errstr() );
while( my $monitor = $sth->fetchrow_hashref() ) while( my $monitor = $sth->fetchrow_hashref() )
{ {
if ( $monitor->{Function} ne 'None' ) next if $monitor->{Function} eq 'None';
{
my $restart = 0; my $restart = 0;
if ( zmMemVerify( $monitor ) if ( zmMemVerify( $monitor )
&& zmMemRead( $monitor, "shared_data:valid" ) && zmMemRead( $monitor, "shared_data:valid" )
@ -164,7 +163,6 @@ while( 1 )
} }
# Prevent open handles building up if we have connect to shared memory # Prevent open handles building up if we have connect to shared memory
zmMemInvalidate( $monitor ); zmMemInvalidate( $monitor );
}
sleep( $Config{ZM_WATCH_CHECK_INTERVAL} ); sleep( $Config{ZM_WATCH_CHECK_INTERVAL} );
} }
Info( "Watchdog exiting\n" ); Info( "Watchdog exiting\n" );