Преглед изворни кода

Fix byte order in verbose logging

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1671 f882894a-f735-0410-b71e-b25c423dba1c
Thomas Guyot-Sionnest пре 19 година
родитељ
комит
3315c3f25e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      plugins/check_ntp.c

+ 1 - 1
plugins/check_ntp.c

@@ -593,7 +593,7 @@ double jitter_request(const char *host, int *status){
 
 				/* 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++;