mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 10:45:07 -05:00
sourcestats: increase number of samples needed to check delay
Require at least 6 samples to check the increase in the delay of a new sample to make it more reliable.
This commit is contained in:
@@ -784,7 +784,7 @@ SST_IsGoodSample(SST_Stats inst, double offset, double delay,
|
|||||||
{
|
{
|
||||||
double elapsed, allowed_increase, delay_increase;
|
double elapsed, allowed_increase, delay_increase;
|
||||||
|
|
||||||
if (inst->n_samples < 3)
|
if (inst->n_samples < 6)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
elapsed = UTI_DiffTimespecsToDouble(when, &inst->offset_time);
|
elapsed = UTI_DiffTimespecsToDouble(when, &inst->offset_time);
|
||||||
|
|||||||
Reference in New Issue
Block a user