]> git.etc.gen.nz Git - spong.git/commitdiff
$/ was being undef'ed and not being restored afterwards
authorStephen L Johnson <sjohnson@monsters.org>
Thu, 12 Apr 2001 19:05:39 +0000 (19:05 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Thu, 12 Apr 2001 19:05:39 +0000 (19:05 +0000)
src/lib/Spong/Network/plugins/check_ntp

index f96c380a88dff8c72f37faa2d9f088d1376eb20e..2a97fe69464bb577f24031bb7427ed0370cd82c8 100755 (executable)
@@ -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;