On Wed, Jul 02, 2025 at 02:55:02PM +0200, Ahmad Fatoum wrote: > > chronyd does not set the STA_UNSYNC flag when it loses its upstream > > sources. > > Oh. Then I have trouble understanding the code in set_sync_status, which > compares max_error against MAX_SYNC_ERROR (== 16s) as it looks like that > would cause STA_UNSYNC to be set once the threshold is exceeded.
16 seconds is the maximum value that the kernel can keep as esterror and maxerror. It would automatically set the STA_UNSYNC flag if the application didn't set it. Normally, if the clock is well synchronized, it takes a few days for that threshold to be reached. I assume you are interested in much shorter intervals. -- Miroslav Lichvar -- To unsubscribe email chrony-dev-requ...@chrony.tuxfamily.org with "unsubscribe" in the subject. For help email chrony-dev-requ...@chrony.tuxfamily.org with "help" in the subject. Trouble? Email listmas...@chrony.tuxfamily.org.