From 9e3900bce2cd7ce34842e7ad61e2f52180f0fa11 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 7 Oct 2022 15:06:01 -0400 Subject: [PATCH] Fix Monitor => monitor --- scripts/zmwatch.pl.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/zmwatch.pl.in b/scripts/zmwatch.pl.in index ddee2a322..16f15dcda 100644 --- a/scripts/zmwatch.pl.in +++ b/scripts/zmwatch.pl.in @@ -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; }