]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: move drift correction and --predict
authorJ William Piggott <elseifthen@gmx.com>
Sat, 29 Jul 2017 13:21:19 +0000 (09:21 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Fri, 4 Aug 2017 12:53:44 +0000 (08:53 -0400)
commita218e2a83fb6c64103b0b33e233db019bede44e2
tree10b2f3555cecb8fe4f3dc966d5b866eedbc1fc8d
parent551e703401f62553337b47056e144ce88d8179ed
hwclock: move drift correction and --predict

Move the predict branch above the RTC read branch.

Move drift correction into the RTC read branch, because it
requires an accurate RTC read, and it needs to be skipped for
operations that do not require an RTC read.

Simplify the RTC read branch test.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c