mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 19:45:07 -05:00
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.
This commit is contained in:
@@ -103,6 +103,7 @@ test_unit(void)
|
||||
|
||||
} else {
|
||||
SPF_DropSamples(filter);
|
||||
TEST_CHECK(filter->last < 0);
|
||||
}
|
||||
|
||||
TEST_CHECK(SPF_GetNumberOfSamples(filter) == 0);
|
||||
|
||||
Reference in New Issue
Block a user