summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2007-03-20 00:32:37 +0100
committerKarel Zak <kzak@redhat.com>2007-03-20 00:32:37 +0100
commit99c392d8ba163e35b9d562dd4bcf7dd476ad3573 (patch)
tree3f6a3aa7805518129638b39442d1e48538b1d78a /tests
parent51bc94930b9986571a359a3501ad5926de2b4847 (diff)
downloadutil-linux-old-99c392d8ba163e35b9d562dd4bcf7dd476ad3573.tar.gz
hwclock: fix --systohc sets clock 0.5 seconds slow
quote from rh150493: The kernel code, when setting the BIOS clock notes that the clock time ticks to the next second 0.5 seconds after adjusting it (see linux/arch/i386/kernel/time.c). hwclock --systohc sets the CMOS clock at the 1 second boundry and thus causes the clock to be wrong by 500ms each time it is reset. If the clock is set every shutdown then the clock will have a reboot-count related drift as well as the natural drift problems of the clock. Note that this also mucks up the drift calculations, of course. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ts-hwclock-systohc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts-hwclock-systohc b/tests/ts-hwclock-systohc
index 522b597f..6171ab30 100755
--- a/tests/ts-hwclock-systohc
+++ b/tests/ts-hwclock-systohc
@@ -72,5 +72,5 @@ if [ "$DIFF" == "1" ]; then
ts_failed "offset is $OFFSET"
fi
-ts_ok
+ts_ok "offset is $OFFSET"