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:
parent
8ffd642e06
commit
a7a471d58d
|
@ -135,9 +135,10 @@ while( 1 )
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $max_image_delay = $monitor->{MaxFPS}>0?(10/$monitor->{MaxFPS}):ZM_WATCH_MAX_DELAY;
|
||||||
my $image_delay = $now-$image_time;
|
my $image_delay = $now-$image_time;
|
||||||
print( "Monitor $monitor->{Id} last captured $image_delay seconds ago\n" ) if ( VERBOSE );
|
print( "Monitor $monitor->{Id} last captured $image_delay seconds ago, max is $max_image_delay\n" ) if ( VERBOSE );
|
||||||
if ( $image_delay <= ZM_WATCH_MAX_DELAY )
|
if ( $image_delay <= $max_image_delay )
|
||||||
{
|
{
|
||||||
# Yes, so continue
|
# Yes, so continue
|
||||||
next;
|
next;
|
||||||
|
|
Loading…
Reference in New Issue