Re: [chrony-users] Question about chrony use in a system without RTC battery |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Question about chrony use in a system without RTC battery
- From: chrony-users@xxxxxxxxx
- Date: Wed, 9 Mar 2022 16:06:42 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=pe1chl.nl; s=pe1chl; t=1646838404; bh=U9EgDayrESX8L/25YNM7ncm5gs9hmSmGaKTe0xXk334=; h=Date:Subject:To:References:From:In-Reply-To:From; b=rw0NERHwivyeP3XNipcb5BveRZeILYTEQqNTzE6+VeLHcXGYwVzJTSMIhqaoviULZ thyIGOyHxkpIlgxgPQTW/OHkg22sfnklREd8d8v9a4EnwoN+saWT5pVn2tlexjp1nT /2rkYByV9qAa5o5W2yoSGYDS8SqlaUVpsNFmmWe0Yw5dpqRFzBED0CE9nERzax1A0b 1tn6Kko4ledxdT1sgy1YoljMCkFUPKP8Yq4zRRLgfjDODGJtGA2m+N5y+hF37V7qSy B19DCQ0av6vdJ1SWUhvUzJOTc1FzzQJMv7cJPdyk8sCL4HO958gxpGiQGwgf4vsTUZ CCGB0bxRuU2WQ==
- Organization: PE1CHL
I would say you can handle that yourself by running a startup job that
runs before your logger application, retrieves the last time of a log
entry, compares that to the current clock, and when the clock is
lower it sets the time to that latest log entry time (maybe +1).
Then in case there is no internet connection, at least your time won't
jump back.
Rob
On 3/9/22 15:36, Kris van Rens wrote:
> My main goal is to prevent the system time to jump back. My
> application data recording mechanism assumes time to increase
> monotonously, and a jump back in time will prevent my application from
> writing any data. In a case of a temporary poweroff + RTC value loss,
> I'd rather have an erroneous time indication that disregards the
> outage time, but at least does not jump back in time. In any normal
> situation NTP is always enabled and the internet connection is stable,
> but power outages do happen.
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.