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-d78f3d33393fpull/27/merge
parent
e16882d816
commit
1ceb9cc9b7
|
@ -384,6 +384,11 @@ if ( !connect( CLIENT, $saddr ) )
|
||||||
{
|
{
|
||||||
$process->{pending} = $process->{stopped}+$process->{delay};
|
$process->{pending} = $process->{stopped}+$process->{delay};
|
||||||
$process->{delay} *= 2;
|
$process->{delay} *= 2;
|
||||||
|
# Limit the start delay to 15 minutes max
|
||||||
|
if ( $process->{delay} > 900 )
|
||||||
|
{
|
||||||
|
$process->{delay} = 900;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue