mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
sources: update reference only with new sample
This follows the section 11.2.3. from RFC 5905.
This commit is contained in:
@@ -140,11 +140,11 @@ extern void SRC_ResetReachability(SRC_Instance inst);
|
||||
|
||||
/* This routine is used to select the best source from amongst those
|
||||
we currently have valid data on, and use it as the tracking base
|
||||
for the local time. Updates are only made to the local reference
|
||||
if a new source is selected or updated_inst is the selected
|
||||
reference source. (This avoids updating the frequency
|
||||
for the local time. Updates are made to the local reference only
|
||||
when the selected source was updated (set as updated_inst) since
|
||||
the last reference update. This avoids updating the frequency
|
||||
tracking for every sample from other sources - only the ones from
|
||||
the selected reference make a difference) */
|
||||
the selected reference make a difference. */
|
||||
extern void SRC_SelectSource(SRC_Instance updated_inst);
|
||||
|
||||
/* Force reselecting the best source */
|
||||
|
||||
Reference in New Issue
Block a user