[Nagiosplug-checkins] nagiosplug/plugins check_ntp.c,1.19,1.20

Thomas Guyot dermoth at users.sourceforge.net
Mon Apr 2 09:32:33 CEST 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9267/plugins

Modified Files:
	check_ntp.c 
Log Message:
Fix byte order in verbose logging


Index: check_ntp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- check_ntp.c	2 Apr 2007 06:00:59 -0000	1.19
+++ check_ntp.c	2 Apr 2007 07:32:30 -0000	1.20
@@ -593,7 +593,7 @@
 
 				/* get to the float value */
 				if(verbose) {
-					printf("parsing jitter from peer %.2x: ", peers[i].assoc);
+					printf("parsing jitter from peer %.2x: ", ntohs(peers[i].assoc));
 				}
 				startofvalue = strchr(req.data, '=');
 				if(startofvalue != NULL) startofvalue++;





More information about the Commits mailing list