From: Stephen L Johnson Date: Thu, 12 Apr 2001 19:05:39 +0000 (+0000) Subject: $/ was being undef'ed and not being restored afterwards X-Git-Tag: spong-2_7_4~8 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02adf53cdb02bb43c29990e13ed99df0bb4de5a6;p=spong.git $/ was being undef'ed and not being restored afterwards --- 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;