From cd4b73612be1cb705baf7ae03d74fd5c69950413 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 28 May 2015 12:58:20 +0200 Subject: [PATCH] ntp: include message precision in peer dispersion --- ntp_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ntp_core.c b/ntp_core.c index f77758e..80213cd 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1230,7 +1230,8 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins inst->local_ntp_tx.hi = inst->local_ntp_tx.lo = 0; if (valid_packet) { - precision = LCL_GetSysPrecisionAsQuantum(); + precision = LCL_GetSysPrecisionAsQuantum() + + UTI_Log2ToDouble(message->precision); SRC_GetFrequencyRange(inst->source, &source_freq_lo, &source_freq_hi);