mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 21:15:07 -05:00
Select source with minimum distance using a scoring system
Each source has a score against currently selected source which is updated (multiplied by ratio of their distances) when one of the two sources has a new sample. When the score reaches a limit, the source will be selected. This should allow to slowly select the source with minimum distance without frequent reselecting. To avoid switching between sources with very variable distances (e.g. on LAN or when upstream server uses a longer polling interval), sources that are currently not selected are penalized by a fixed distance. This can be configured with new reselectdist directive (100 microseconds by default).
This commit is contained in:
1
conf.h
1
conf.h
@@ -78,6 +78,7 @@ extern void CNF_GetLinuxFreqScale(int *set, double *freq_scale);
|
||||
/* Value returned in ppm, as read from file */
|
||||
extern double CNF_GetMaxUpdateSkew(void);
|
||||
extern double CNF_GetMaxClockError(void);
|
||||
extern double CNF_GetReselectDistance(void);
|
||||
extern int CNF_AllowLocalReference(int *stratum);
|
||||
|
||||
extern void CNF_SetupAccessRestrictions(void);
|
||||
|
||||
Reference in New Issue
Block a user