mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 21:45:07 -05:00
Match skew in ntp_core to sourcestats skew
This commit is contained in:
@@ -894,7 +894,7 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
||||
sample_time = local_average;
|
||||
|
||||
/* Calculate skew */
|
||||
skew = source_freq_hi - source_freq_lo;
|
||||
skew = (source_freq_hi - source_freq_lo) / 2.0;
|
||||
|
||||
/* and then calculate peer dispersion */
|
||||
epsilon = LCL_GetSysPrecisionAsQuantum() + now_err + skew * local_interval;
|
||||
|
||||
Reference in New Issue
Block a user