Fix Monitor => monitor
parent
7e78dadb91
commit
9e3900bce2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue