Fix Monitor => monitor

pull/3609/head
Isaac Connor 2022-10-07 15:06:01 -04:00
parent 7e78dadb91
commit 9e3900bce2
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ while (!$zm_terminate) {
my $startup_time = zmGetStartupTime($monitor);
if (($now - $startup_time) > $Config{ZM_WATCH_MAX_DELAY}) {
Warning(
"Restarting capture daemon for $$Monitor{Id} $$monitor{Name}, no image since startup. ".
"Restarting capture daemon for $$monitor{Id} $$monitor{Name}, no image since startup. ".
"Startup time was $startup_time - now $now > $Config{ZM_WATCH_MAX_DELAY}"
);
$restart = 1;
@ -133,14 +133,14 @@ while (!$zm_terminate) {
my $image_delay = $now - $capture_time;
Debug("Monitor $monitor->{Id} last captured $image_delay seconds ago, max is $max_image_delay");
if ( $image_delay > $max_image_delay ) {
Warning("Restarting capture daemon for $$Monitor{Id} "
Warning("Restarting capture daemon for $$monitor{Id} "
.$monitor->{Name}.", time since last capture $image_delay seconds ($now-$capture_time)"
);
$restart = 1;
}
} # end if ! restart
} else {
Info("Restarting capture daemon for $$Monitor{Id} $monitor->{Name}, shared data not valid");
Info("Restarting capture daemon for $$monitor{Id} $monitor->{Name}, shared data not valid");
$restart = 1;
}