Optimised config calls.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1397 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
322caab34b
commit
a49d7a9d6f
|
@ -198,6 +198,8 @@ int main( int argc, char *argv[] )
|
||||||
capture_delays[i] = monitors[i]->GetCaptureDelay();
|
capture_delays[i] = monitors[i]->GetCaptureDelay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool no_max_fps = (bool)config.Item( ZM_NO_MAX_FPS_ON_ALARM );
|
||||||
|
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
struct DeltaTimeval delta_time;
|
struct DeltaTimeval delta_time;
|
||||||
while( !zmc_terminate )
|
while( !zmc_terminate )
|
||||||
|
@ -207,7 +209,7 @@ int main( int argc, char *argv[] )
|
||||||
for ( int i = 0; i < n_monitors; i++ )
|
for ( int i = 0; i < n_monitors; i++ )
|
||||||
{
|
{
|
||||||
long min_delay = MAXINT;
|
long min_delay = MAXINT;
|
||||||
if ( (bool)config.Item( ZM_NO_MAX_FPS_ON_ALARM ) && monitors[i]->GetState() == Monitor::ALARM )
|
if ( no_max_fps && (monitors[i]->GetState() == Monitor::ALARM) )
|
||||||
{
|
{
|
||||||
next_delays[i] = 0;
|
next_delays[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue