mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 23:05:06 -05:00
When processing data from the PTP_SYS_OFFSET ioctl, the sample is dropped when an interval between two consecutive readings of the system clock is negative or zero, assuming the clock has been stepped between the two readings. With a real PHC the interval is normally expected to be at least a microsecond, but with a virtual PHC and a low-resolution system clock it's possible to get two readings with the same system time. Modify the check to drop only samples with a negative delay.
22 KiB
22 KiB