You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printDebug( "There are $child_forks active child forks...", 2 );
4479
+
printDebug( "There are $child_forks active child forks & $parallel_hooks zm_detect processes running...", 2 );
4450
4480
my (@newEvents) = checkNewEvents();
4451
4481
4452
4482
#print Dumper(\@newEvents);
@@ -4468,6 +4498,10 @@ sub initSocketServer {
4468
4498
}
4469
4499
4470
4500
foreach (@newEvents) {
4501
+
if (($parallel_hooks >= $max_parallel_hooks) && ($max_parallel_hooks != 0)) {
4502
+
printError("There are $parallel_hooks hooks running as of now. This exceeds your set limit of max_parallel_hooks=$max_parallel_hooks. Ignoring this event. Either increase your max_parallel_hooks value, or, adjust your ZM motion sensitivity ");
4503
+
return;
4504
+
}
4471
4505
$child_forks++;
4472
4506
$total_forks++;
4473
4507
if ($cpid = fork() ) {
@@ -4523,7 +4557,7 @@ sub initSocketServer {
4523
4557
}
4524
4558
4525
4559
check_for_duplicate_token();
4526
-
printDebug( "---------->Tick END (active forks:$child_forks, total forks:$total_forks)<--------------", 2 );
4560
+
printDebug( "---------->Tick END (active forks:$child_forks, total forks:$total_forks, active hooks: $parallel_hooks)<--------------", 2 );
0 commit comments