summaryrefslogtreecommitdiffstats
path: root/web/attachments/63638-check_ntp.patchfile
blob: 619b43c141b8c8885dce5e4978f919b778d469cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
*** check_ntp.orig	2003-08-15 08:59:00.000000000 -0400
--- check_ntp	2003-10-06 21:21:20.000000000 -0400
##  fixes error parsing ntpq output if 'poll' includes an "m", and 
##  corrected spelling of "CAndidate"
***************
*** 258,268 ****
  			# number of candidates on <host> for sys.peer
  			if (/^(\*|\+|\#|o])/) {
  				++$candidates;
! 				print "Candiate count= $candidates\n" if ($verbose);
  			}
  
  			# match sys.peer or pps.peer
! 			if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
  				$syspeer = $2;
  				$stratum = $4;
  				$jitter = $11;
--- 258,268 ----
  			# number of candidates on <host> for sys.peer
  			if (/^(\*|\+|\#|o])/) {
  				++$candidates;
! 				print "Candidate count= $candidates\n" if ($verbose);
  			}
  
  			# match sys.peer or pps.peer
! 			if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9m.]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
  				$syspeer = $2;
  				$stratum = $4;
  				$jitter = $11;