From: Andreas Henriksson <andreas@fatal.se>
To: util-linux@vger.kernel.org
Cc: peppe <g1pi@libero.it>, Andreas Henriksson <andreas@fatal.se>
Subject: [PATCH] hwclock: sometimes one day lasts 23 hours.
Date: Sun, 22 Jun 2014 14:23:25 +0200 [thread overview]
Message-ID: <1403439805-11760-1-git-send-email-andreas@fatal.se> (raw)
From: peppe <g1pi@libero.it>
If less than 23 hours have passed since the last calibration, hwclock
says "Not adjusting drift factor because it has been less than a day since
the last calibration.", but in fact compares to 23 hours, not 24.
This was originally reported at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689534
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
---
sys-utils/hwclock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index 0abf01f..bdac003 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -989,7 +989,7 @@ adjust_drift_factor(struct adjtime *adjtime_p,
"calibration time is zero,\n"
"so history is bad and calibration startover "
"is necessary.\n"));
- } else if ((hclocktime - adjtime_p->last_calib_time) < 23 * 60 * 60) {
+ } else if ((hclocktime - adjtime_p->last_calib_time) < 24 * 60 * 60) {
if (debug)
printf(_("Not adjusting drift factor because it has "
"been less than a day since the last "
--
2.0.0
next reply other threads:[~2014-06-22 12:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-22 12:23 Andreas Henriksson [this message]
2014-06-23 10:44 ` [PATCH] hwclock: sometimes one day lasts 23 hours Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403439805-11760-1-git-send-email-andreas@fatal.se \
--to=andreas@fatal.se \
--cc=g1pi@libero.it \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox