mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:25:07 -05:00
samplefilt: add function to correct accumulated offsets
Analogously to SST_CorrectOffset(), add SPF_CorrectOffset() to correct the offsets accumulated in the filter.
This commit is contained in:
@@ -69,6 +69,7 @@ test_unit(void)
|
||||
TEST_CHECK(!memcmp(&sample_in, &sample_out, sizeof (sample_in)));
|
||||
|
||||
SPF_SlewSamples(filter, &sample_in.time, 0.0, 0.0);
|
||||
SPF_CorrectOffset(filter, 0.0);
|
||||
SPF_AddDispersion(filter, 0.0);
|
||||
|
||||
if (k + 1 < min_samples)
|
||||
|
||||
Reference in New Issue
Block a user