mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-06 19:25:06 -05:00
Make importance of stratum in source selection configurable
Instead of always selecting the source with minimum stratum, add weighted stratum to the distance when comparing selectable sources. The weight can be configured with new stratumweight directive and can be set to zero to ignore stratum completely, by default 1.0.
This commit is contained in:
3
conf.h
3
conf.h
@@ -78,7 +78,10 @@ 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 double CNF_GetStratumWeight(void);
|
||||
|
||||
extern int CNF_AllowLocalReference(int *stratum);
|
||||
|
||||
extern void CNF_SetupAccessRestrictions(void);
|
||||
|
||||
Reference in New Issue
Block a user