From: Miroslav Lichvar Date: Thu, 28 May 2015 10:58:20 +0000 (+0200) Subject: ntp: include message precision in peer dispersion X-Git-Tag: 2.1-pre1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd4b73612be1cb705baf7ae03d74fd5c69950413;p=thirdparty%2Fchrony.git ntp: include message precision in peer dispersion --- diff --git a/ntp_core.c b/ntp_core.c index f77758ef..80213cdc 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);