mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 06:45:06 -05:00
This patch fixes leap second handling for the PPS refclock. Without the patch the PPS refclock will always report LEAP_normal. But if a locked refclock (the SHM clock in my case) does report a leap state it should also be taken over by the PPS refclock, otherwise chrony will still use LEAP_normal when the PPS clock is used as reference source. The patch will copy the leap state from the refclock. In case the PPS clock is not specifically locked to another refclock it will take over the leap state from the local clock. I've tested this patch by simulating a leap second through the samples for the SHM clock, and with the patch you will see chrony properly jump forward or backward on the leap second. Without the patch it will not do this and the clock becomes desynchronized and no leap state is reported upstream to other NTP clients. Signed-off-by: Tjalling Hattink <t.hattink@fugro.nl>
24 KiB
24 KiB