Re: [chrony-dev] Feature request: Set RTC if error > X secs

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


On Tue, Oct 29, 2013 at 03:28:34PM +0100, Miroslav Lichvar wrote:
> On Fri, Oct 25, 2013 at 04:56:50PM +0100, Ed W wrote:
> > Hi, I have a feature request that I suspect might be straightforward:
> [...]
> > So what might be very helpful is when sync is established with some
> > reliable source, AND the RTC is identified as more than X seconds
> > out, then immediately sync RTC.  That way I could set say 30 secs as
> > the error term, measure the drift for as long as possible, but
> > equally if the machine boots up with a vastly wrong clock then it's
> > immediately corrected once clock sync is established (this would
> > make initialising these devices much simpler)
> 
> I think it's doable, configured maybe as "autotrimrtc 30.0". In my
> todo list there is a feature for trimming the RTC automatically on the
> first system clock update, but this one would be probably even more
> useful.

This is now in git, the option is called rtcautotrim.

Ed, can you please try it and let me know how it works? I made only a
quick test.

-- 
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/