diff options
author | Karel Zak | 2011-12-09 14:08:02 +0100 |
---|---|---|
committer | Karel Zak | 2011-12-09 14:08:02 +0100 |
commit | aca9b5a6fb66544cdb885bcdb6f7c99d7ca293c4 (patch) | |
tree | 9ddf687f08efc3ee297ac5ae4fdfe581633d6949 /Documentation | |
parent | partx: don't treat empty partition table as error (diff) | |
download | kernel-qcow2-util-linux-aca9b5a6fb66544cdb885bcdb6f7c99d7ca293c4.tar.gz kernel-qcow2-util-linux-aca9b5a6fb66544cdb885bcdb6f7c99d7ca293c4.tar.xz kernel-qcow2-util-linux-aca9b5a6fb66544cdb885bcdb6f7c99d7ca293c4.zip |
docs: add hwclock -c to TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/TODO | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/TODO b/Documentation/TODO index f6ddedea5..848900cc7 100644 --- a/Documentation/TODO +++ b/Documentation/TODO @@ -9,6 +9,27 @@ dmesg - add --color to colorize err and panic messages +hwclock +------- + + - (!!!) add "hwclock -c|--compare" to provide info about RTC frequency offset + like "adjtimex -c", shell version: + + #!/bin/bash + date > /dev/null + hwdate=$(hwclock -r) + time1_sys=$(date +'%s.%N') + time1_hw=$(date -d "${hwdate% -*}" +'%s') + + while sleep 10; do + hwdate=$(hwclock -r) + time2_sys=$(date +'%s.%N') + time2_hw=$(date -d "${hwdate% -*}" +'%s') + awk "END { x = (($time1_hw - $time1_sys) - ($time2_hw - $time2_sys)) / + ($time2_hw - $time1_hw); printf \"sysclock/RTC frequency offset: %.0f ppm (%.0f + ticks)\n\", x * 1e6, x * 1e4}" < /dev/null + done + ldattach -------- |