From e8e4dbf2880d68add382dead1283c0922a4c8345 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 17 Jan 2003 10:34:12 +0000 Subject: [PATCH] Added short pause before starting to allow shared memory to begin. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@356 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmfilter.pl.z | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/zmfilter.pl.z b/scripts/zmfilter.pl.z index 9b586a4b6..63103aff4 100755 --- a/scripts/zmfilter.pl.z +++ b/scripts/zmfilter.pl.z @@ -64,6 +64,7 @@ use constant ZM_FROM_EMAIL => ; use constant EVENT_PATH => ZM_PATH_WEB.'/'.ZM_DIR_EVENTS; use constant LOG_FILE => ZM_PATH_LOGS.'/zmfilter-%d.log'; +use constant START_DELAY => 5; # How long to wait before starting use constant VERBOSE => 0; # Whether to output more verbose debug if ( ZM_OPT_UPLOAD ) @@ -299,6 +300,8 @@ if ( !$event_id ) } print( "Scanning for events since id $event_id\n" ); +sleep( START_DELAY ); + my $filters = GetFilters( $monitor ); my $last_action = 0;