From 3315c3f25e3398e766da7ec72589a000be7f9f9d Mon Sep 17 00:00:00 2001
From: Thomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Date: Mon, 2 Apr 2007 07:32:30 +0000
Subject: Fix byte order in verbose logging

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1671 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 8b49928..99fa9a2 100644
--- a/plugins/check_ntp.c
+++ b/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++;
-- 
cgit v0.10-9-g596f

