diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-02 15:51:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-02 15:51:43 +0100 |
commit | b124c3491b8cb86dd7e978c375aa2b83eaca1462 (patch) | |
tree | 3912747ab02f47379084de30bdeb86d85dd3b6a5 /networking/ntpd.c | |
parent | 74584b86656113391763a21ea32fbff6d9fb6a9a (diff) | |
download | busybox-w32-b124c3491b8cb86dd7e978c375aa2b83eaca1462.tar.gz busybox-w32-b124c3491b8cb86dd7e978c375aa2b83eaca1462.tar.bz2 busybox-w32-b124c3491b8cb86dd7e978c375aa2b83eaca1462.zip |
ntpd: log clock drift with three digits after decimal point
+15 bytes.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r-- | networking/ntpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
1506 | } | 1506 | } |
1507 | #endif | 1507 | #endif |
1508 | G.kernel_freq_drift = tmx.freq / 65536; | 1508 | G.kernel_freq_drift = tmx.freq / 65536; |
1509 | VERB2 bb_error_msg("update peer:%s, offset:%+f, jitter:%f, clock drift:%+ld ppm", | 1509 | VERB2 bb_error_msg("update peer:%s, offset:%+f, jitter:%f, clock drift:%+.3f ppm", |
1510 | p->p_dotted, G.last_update_offset, G.discipline_jitter, G.kernel_freq_drift); | 1510 | p->p_dotted, G.last_update_offset, G.discipline_jitter, (double)tmx.freq / 65536); |
1511 | 1511 | ||
1512 | return 1; /* "ok to increase poll interval" */ | 1512 | return 1; /* "ok to increase poll interval" */ |
1513 | } | 1513 | } |