]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hwclock: increase debug output precision
authorJ William Piggott <elseifthen@gmx.com>
Sun, 15 Mar 2015 18:17:13 +0000 (14:17 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Tue, 17 Mar 2015 14:17:26 +0000 (10:17 -0400)
Increased the precision in debug output showing
the clock drift and the time lapsed.

Showing a clock drift of 0.0 while giving a value that the
drift factor was adjusted by makes no sense.

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

index 52a7874c79ed1731926a71d183dabda7911b08f6..e8732b8bc4a3ee2d4f931ec850399ed3b4fb0215 100644 (file)
@@ -1062,8 +1062,8 @@ adjust_drift_factor(struct adjtime *adjtime_p,
                        drift_factor = 0;
                } else {
                        if (debug)
-                               printf(_("Clock drifted %.1f seconds in the past "
-                                        "%.1f seconds\nin spite of a drift factor of "
+                               printf(_("Clock drifted %f seconds in the past "
+                                        "%f seconds\nin spite of a drift factor of "
                                         "%f seconds/day.\n"
                                         "Adjusting drift factor by %f seconds/day\n"),
                                       time_diff(nowtime, hclocktime),