]> git.ipfire.org Git - thirdparty/chrony.git/commit
samplefilt: drop last sample in SPF_DropSamples()
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 May 2022 09:04:52 +0000 (11:04 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 11 May 2022 12:21:09 +0000 (14:21 +0200)
commite66f1df89d56983de0f7d1a70aa6e3ae0fe62730
tree20f1606858c4c477ff6c34a9e58e9706c5154c26
parent35220aac9dee4b7101dbd415dda34750e4998f7d
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.
samplefilt.c
test/unit/samplefilt.c