Match skew in ntp_core to sourcestats skew
This commit is contained in:
parent
e0c9ed44f9
commit
1d72d22bc5
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
||||||
sample_time = local_average;
|
sample_time = local_average;
|
||||||
|
|
||||||
/* Calculate skew */
|
/* Calculate skew */
|
||||||
skew = source_freq_hi - source_freq_lo;
|
skew = (source_freq_hi - source_freq_lo) / 2.0;
|
||||||
|
|
||||||
/* and then calculate peer dispersion */
|
/* and then calculate peer dispersion */
|
||||||
epsilon = LCL_GetSysPrecisionAsQuantum() + now_err + skew * local_interval;
|
epsilon = LCL_GetSysPrecisionAsQuantum() + now_err + skew * local_interval;
|
||||||
|
|
Loading…
Reference in a new issue