Optimised config calls.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1397 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2005-05-05 16:44:06 +00:00
parent 322caab34b
commit a49d7a9d6f
1 changed files with 3 additions and 1 deletions

View File

@ -198,6 +198,8 @@ int main( int argc, char *argv[] )
capture_delays[i] = monitors[i]->GetCaptureDelay();
}
bool no_max_fps = (bool)config.Item( ZM_NO_MAX_FPS_ON_ALARM );
struct timeval now;
struct DeltaTimeval delta_time;
while( !zmc_terminate )
@ -207,7 +209,7 @@ int main( int argc, char *argv[] )
for ( int i = 0; i < n_monitors; i++ )
{
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;
}