diff --git a/scripts/zmfilter.pl.in b/scripts/zmfilter.pl.in index 2c5b7edaa..86593ee9e 100755 --- a/scripts/zmfilter.pl.in +++ b/scripts/zmfilter.pl.in @@ -171,7 +171,7 @@ if ( $filter_name ) { Info( "Scanning for events\n" ); } -if ( ! ( $filter_parm or $filter_id ) ) { +if ( ! ( $filter_name or $filter_id ) ) { sleep( START_DELAY ); } @@ -195,7 +195,7 @@ while( 1 ) { } } - last if ( $filter_parm ); + last if ( $filter_name or $filter_id ); Debug( "Sleeping for $delay seconds\n" ); sleep( $delay );