Updated to handle very low frame rates.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@635 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-09-23 09:50:25 +00:00
parent 8ffd642e06
commit a7a471d58d
1 changed files with 3 additions and 2 deletions

View File

@ -135,9 +135,10 @@ while( 1 )
next;
}
my $max_image_delay = $monitor->{MaxFPS}>0?(10/$monitor->{MaxFPS}):ZM_WATCH_MAX_DELAY;
my $image_delay = $now-$image_time;
print( "Monitor $monitor->{Id} last captured $image_delay seconds ago\n" ) if ( VERBOSE );
if ( $image_delay <= ZM_WATCH_MAX_DELAY )
print( "Monitor $monitor->{Id} last captured $image_delay seconds ago, max is $max_image_delay\n" ) if ( VERBOSE );
if ( $image_delay <= $max_image_delay )
{
# Yes, so continue
next;