ntp: include message precision in peer dispersion
This commit is contained in:
parent
3c217a9e37
commit
cd4b73612b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue