Prevent restart process delay from exceeding 15 minutes (900 seconds)

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@633 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2003-09-23 09:48:05 +00:00
parent e16882d816
commit 1ceb9cc9b7
1 changed files with 5 additions and 0 deletions

View File

@ -384,6 +384,11 @@ if ( !connect( CLIENT, $saddr ) )
{
$process->{pending} = $process->{stopped}+$process->{delay};
$process->{delay} *= 2;
# Limit the start delay to 15 minutes max
if ( $process->{delay} > 900 )
{
$process->{delay} = 900;
}
}
}
}