summaryrefslogtreecommitdiffstats
path: root/web/attachments/122868-check_ntp.patch
blob: b463ed6a6a686fda692e7a5fbf0c0b93f26877b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
*** nagios-plugins-HEAD-200502231747/plugins-scripts/check_ntp.pl	Fri Nov 19 14:59:43 2004
--- nagios-plugins-NEW/plugins-scripts/check_ntp.pl	Thu Feb 24 16:13:59 2005
***************
*** 200,209 ****
  	if (/(offset|adjust)\s+([-.\d]+)/i) {
  		$offset = $2;
  
- 		# An offset of 0.000000 with an error is probably bogus. Actually,
- 		# it's probably always bogus, but let's be paranoid here.
- 		if ($offset == 0) { undef $offset;}
- 
  		$ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"};
  		print "ntperr = $ntpdate_error \n" if $verbose;
  	
--- 200,205 ----