sources: update reference only with new sample

This follows the section 11.2.3. from RFC 5905.
This commit is contained in:
Miroslav Lichvar
2014-10-16 15:28:12 +02:00
parent 819b8eb73d
commit e930d94728
2 changed files with 17 additions and 12 deletions

View File

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