From: Denys Vlasenko Date: Fri, 2 Mar 2012 14:51:43 +0000 (+0100) Subject: ntpd: log clock drift with three digits after decimal point X-Git-Tag: 1_20_0~61 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b124c3491b8cb86dd7e978c375aa2b83eaca1462;p=oweals%2Fbusybox.git ntpd: log clock drift with three digits after decimal point +15 bytes. Signed-off-by: Denys Vlasenko --- diff --git a/networking/ntpd.c b/networking/ntpd.c index e7e992205..e86f72f83 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -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" */ }