Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ntpquery: Add a '-a' flag that makes it use adjtime
With this, `ntpquery` can adjust the system time without making it jump. A fun activity with this in: 0. Boot 1. Run `su` 2. Run `ntpquery -a` to adjust the time offset after boot (usually around a second) 3. Keep running `ntpquery ; adjtime` to see how the offset behind NTP and the remaining adjtime both shrink. adjtime adjustment is large enough to make the time offset go down by a bit, but we currently lose time quickly enough that by the time adjtime is done, we've only corrected the clock about halfway, and not all the way to zero. Goto 2. So this isn't all that great yet, but I think it's good enough to think about turning this into a permanently running service next.
- Loading branch information