From 02adf53cdb02bb43c29990e13ed99df0bb4de5a6 Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Thu, 12 Apr 2001 19:05:39 +0000 Subject: [PATCH] $/ was being undef'ed and not being restored afterwards --- src/lib/Spong/Network/plugins/check_ntp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Spong/Network/plugins/check_ntp b/src/lib/Spong/Network/plugins/check_ntp index f96c380..2a97fe6 100755 --- a/src/lib/Spong/Network/plugins/check_ntp +++ b/src/lib/Spong/Network/plugins/check_ntp @@ -16,6 +16,7 @@ sub check_ntp { if ( $? != 0 ) { $color = "red"; $summary = "NTP server down"; { + local $/; undef $/; if ($message =~ /server (.*), stratum (.*), offset (.*), delay (.*)/) { my $offset = $3; my $stratum = $2; -- 2.30.2