View | Details | Raw Unified
Collapse All | Expand All

(-) scripts/zmwatch.pl.old (-1 / +1 lines)
 Lines 90-96    Link Here 
				next if ( !defined($image_time) ); # Can't read from shared memory
				next if ( !defined($image_time) ); # Can't read from shared memory
				next if ( !$image_time ); # We can't get the last capture time so can't be sure it's died.
				next if ( !$image_time ); # We can't get the last capture time so can't be sure it's died.
				my $max_image_delay = ($monitor->{MaxFPS}&&($monitor->{MaxFPS}<1))?(3/$monitor->{MaxFPS}):ZM_WATCH_MAX_DELAY;
                               my $max_image_delay = ($monitor->{MaxFPS}&&($monitor->{MaxFPS}<1)&&($monitor->{MaxFPS}>0))?(3/$monitor->{MaxFPS}):ZM_WATCH_MAX_DELAY;
				my $image_delay = $now-$image_time;
				my $image_delay = $now-$image_time;
				Debug( "Monitor $monitor->{Id} last captured $image_delay seconds ago, max is $max_image_delay\n" );
				Debug( "Monitor $monitor->{Id} last captured $image_delay seconds ago, max is $max_image_delay\n" );
				if ( $image_delay <= $max_image_delay )
				if ( $image_delay <= $max_image_delay )