Re: [chrony-dev] [RFC] Transparent fallback from NTP reference clock to RTC

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


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-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/