ntpd: log clock drift with three digits after decimal point
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 2 Mar 2012 14:51:43 +0000 (15:51 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 2 Mar 2012 14:51:43 +0000 (15:51 +0100)
+15 bytes.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ntpd.c

index e7e9922054c45ffa6fb8f7014959754c05651771..e86f72f8366e281bf33a83acdc01da6d30e1f43d 100644 (file)
@@ -1506,8 +1506,8 @@ update_local_clock(peer_t *p)
        }
 #endif
        G.kernel_freq_drift = tmx.freq / 65536;
-       VERB2 bb_error_msg("update peer:%s, offset:%+f, jitter:%f, clock drift:%+ld ppm",
-                       p->p_dotted, G.last_update_offset, G.discipline_jitter, G.kernel_freq_drift);
+       VERB2 bb_error_msg("update peer:%s, offset:%+f, jitter:%f, clock drift:%+.3f ppm",
+                       p->p_dotted, G.last_update_offset, G.discipline_jitter, (double)tmx.freq / 65536);
 
        return 1; /* "ok to increase poll interval" */
 }