mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:45:07 -05:00
reference: fix offset SD to include elapsed time
This should slow down corrections based on old measurements with large estimated error in frequency.
This commit is contained in:
@@ -985,6 +985,7 @@ REF_SetReference(int stratum,
|
|||||||
|
|
||||||
elapsed = UTI_DiffTimespecsToDouble(&now, ref_time);
|
elapsed = UTI_DiffTimespecsToDouble(&now, ref_time);
|
||||||
our_offset = offset + elapsed * frequency;
|
our_offset = offset + elapsed * frequency;
|
||||||
|
offset_sd += elapsed * frequency_sd;
|
||||||
|
|
||||||
if (!is_offset_ok(our_offset))
|
if (!is_offset_ok(our_offset))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user