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:
Miroslav Lichvar
2014-04-03 18:11:37 +02:00
parent de5178575f
commit 0094128ca6
4 changed files with 18 additions and 16 deletions

View File

@@ -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