Package: util-linux Version: 2.17.2-9 Severity: normal Tags: patch
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. -- System Information: Debian Release: 6.0.6 APT prefers stable APT policy: (990, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages util-linux depends on: ii debconf [debconf-2 1.5.36.1 Debian configuration management sy ii dpkg 1.15.8.13 Debian package management system ii initscripts 2.88dsf-13.1+squeeze1 scripts for initializing and shutt ii install-info 4.13a.dfsg.1-6 Manage installed documentation in ii libblkid1 2.17.2-9 block device id library ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib ii libncurses5 5.7+20100313-5 shared libraries for terminal hand ii libselinux1 2.0.96-1 SELinux runtime shared libraries ii libslang2 2.2.2-4 The S-Lang programming library - r ii libuuid1 2.17.2-9 Universally Unique ID library ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip ii tzdata 2012c-0squeeze1 time zone and daylight-saving time ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime util-linux recommends no packages. Versions of packages util-linux suggests: ii console-tools 1:0.2.3dbs-69.1 Linux console and font utilities ii dosfstools 3.0.9-1 utilities for making and checking pn util-linux-locales <none> (no description available) -- debconf information excluded
--- hwclock.c 2012-10-03 19:48:03.000000000 +0200 +++ hwclock.c.24 2012-10-03 20:20:33.000000000 +0200 @@ -858,7 +858,7 @@ "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 "