Miroslav Lichvar
a4349b13df
samplefilt: add function to get maximum number of samples
2022-07-21 14:17:22 +02:00
Miroslav Lichvar
e66f1df89d
samplefilt: drop last sample in SPF_DropSamples()
...
When SPF_DropSamples() is called, don't keep the last sample to be
retrieved by SPF_GetLastSample(). It should be kept only after
filtering.
2022-05-11 14:21:09 +02:00
Miroslav Lichvar
d5e645eb38
samplefilt: add function to correct accumulated offsets
...
Analogously to SST_CorrectOffset(), add SPF_CorrectOffset() to correct
the offsets accumulated in the filter.
2022-02-24 11:40:01 +01:00
Miroslav Lichvar
1a8dcce84f
sources: update stratum with leap status
...
Remove stratum from the NTP sample and update it together with the leap
status. This enables a faster update when samples are dropped by the NTP
filters.
2021-02-04 17:43:47 +01:00
Miroslav Lichvar
2582be8754
sources: separate update of leap status
...
Remove leap status from the NTP sample and set it independently from
the sample accumulation in order to accept a leap second sooner when
samples are filtered.
2020-03-12 14:07:12 +01:00
Miroslav Lichvar
bcedacaa3d
test: fix samplefilt unit test to work with low-precision clock
2018-09-10 14:56:03 +02:00
Miroslav Lichvar
7889d108c2
test: add samplefilt unit test
2018-08-24 18:09:29 +02:00