mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 08:25:07 -05:00
sources: split source selection from sample accumulation
This will allow postponing source selection and reference update, which could be useful in burst modes.
This commit is contained in:
@@ -1179,6 +1179,8 @@ receive_packet(NTP_Packet *message, struct timeval *now, double now_err, NCR_Ins
|
||||
root_delay, root_dispersion,
|
||||
message->stratum, (NTP_Leap) pkt_leap);
|
||||
|
||||
SRC_SelectSource(inst->source);
|
||||
|
||||
/* Now examine the registers. First though, if the prediction is
|
||||
not even within +/- the peer distance of the peer, we are clearly
|
||||
not tracking the peer at all well, so we back off the sampling
|
||||
|
||||
Reference in New Issue
Block a user