mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 10:55:06 -05:00
hwclock: add parameters for minimum/maximum number of samples
Allocate the arrays which hold the samples dynamically and limit the number of dropped samples to not fall below the minimum.
This commit is contained in:
@@ -31,7 +31,7 @@ test_unit(void)
|
||||
|
||||
LCL_Initialise();
|
||||
|
||||
clock = HCL_CreateInstance(1.0);
|
||||
clock = HCL_CreateInstance(0, 16, 1.0);
|
||||
|
||||
for (i = 0, count = 0, sum = 0.0; i < 2000; i++) {
|
||||
UTI_ZeroTimespec(&start_hw_ts);
|
||||
|
||||
Reference in New Issue
Block a user