> I fixed syncing code so that it widens sync window very fast. > But then I disabled it anyway, it's too big and in my testing, > RTC isn't setting time with ~0.5sec precision anyway (!!!). > > Fixed in git, will be in 1.16.2 > -- > vda > > Couple remarks: > 1. Why would we care to synchronize time in from_sys_clock() > and not to do it in to_sys_clock()?
I had it in both places, but the restored time was always offset by ~0.5s.... and thanks to your below comment I now know why. But anyway. This code was my own invention and it looks like it was a bad idea in general. > 2. Linux kernel will attempt to update RTC at 500ms mark and > not at a second mark. Do they known something better? Hmm, I didn't know that. Perhaps they thought this minimizes average error in setting RTC time. -- vda _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
