mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-01-21 05:10:19 -05:00
ntp: set maximum number of iburst samples to size of reach register
Explicitly set the number of iburst samples to the size of the register to make sure there are at least 7 reachability updates and the initstepslew mode can be ended.
This commit is contained in:
@@ -186,6 +186,10 @@ struct NCR_Instance_Record {
|
||||
a reply to the previous probe */
|
||||
#define BURST_TIMEOUT 8.0
|
||||
|
||||
/* Number of samples in initial burst */
|
||||
#define IBURST_GOOD_SAMPLES 4
|
||||
#define IBURST_TOTAL_SAMPLES SOURCE_REACH_BITS
|
||||
|
||||
/* Time to wait after sending echo to 'warm up' link */
|
||||
#define WARM_UP_DELAY 4.0
|
||||
|
||||
@@ -345,7 +349,7 @@ NCR_GetInstance(NTP_Remote_Address *remote_addr, NTP_Source_Type type, SourcePar
|
||||
}
|
||||
|
||||
if (params->iburst) {
|
||||
NCR_InitiateSampleBurst(result, 4, 8);
|
||||
NCR_InitiateSampleBurst(result, IBURST_GOOD_SAMPLES, IBURST_TOTAL_SAMPLES);
|
||||
}
|
||||
|
||||
result->auto_offline = params->auto_offline;
|
||||
|
||||
Reference in New Issue
Block a user