mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
28f968e38a
- Variable ordering and style realigned with bsd.port.mk - Moved manual pre-configure aclocal call to use bsd.autotools.mk (with manual tweak to ACLOCAL_ARGS required) - Listed resulting plug-in name in user configurable options - Removed remaining hard-coded variables including local state directory - Correctly identified location of Perl to configure script - Removed setlocale (LC_NUMERIC, "C") patch to plug-ins containing scanf(3) and an already defined LC_NUMERIC - Reworked all patches (named using make makepatch) - Corrected minor warning in check_ntp.pl regarding undefined use of $jitter PR: ports/97189 Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
20 lines
587 B
Perl
20 lines
587 B
Perl
--- plugins-scripts/check_ntp.pl.orig Wed Nov 30 11:19:47 2005
|
|
+++ plugins-scripts/check_ntp.pl Fri May 12 23:39:15 2006
|
|
@@ -314,7 +314,6 @@
|
|
}
|
|
} else {
|
|
print "No match!\n" if $verbose;
|
|
- $jitter = '(not parsed)';
|
|
}
|
|
|
|
}
|
|
@@ -428,7 +427,7 @@
|
|
foreach my $key (keys %ERRORS) {
|
|
if ($state==$ERRORS{$key}) {
|
|
# print ("NTP $key: $answer");
|
|
- print ("NTP $key: $answer|offset=$offset, jitter=" . $jitter/1000 . ",peer_stratum=$stratum\n");
|
|
+ print ("NTP $key: $answer|offset=$offset, jitter=" . ($jitter || 0)/1000 . ",peer_stratum=$stratum\n");
|
|
last;
|
|
}
|
|
}
|