diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-02-24 01:22:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-02-24 01:22:45 +0100 |
commit | 03718bb2743fbd772732a2c57c76c1c56fa9cd37 (patch) | |
tree | e7dd512508cbd82fcf66621e50059eb092e7c830 | |
parent | 3a5cc989025eefe03fda0552b253a4a8f015a761 (diff) | |
download | busybox-w32-03718bb2743fbd772732a2c57c76c1c56fa9cd37.tar.gz busybox-w32-03718bb2743fbd772732a2c57c76c1c56fa9cd37.tar.bz2 busybox-w32-03718bb2743fbd772732a2c57c76c1c56fa9cd37.zip |
ntpd: print packet delay in clock update message
function old new delta
update_local_clock 820 826 +6
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/ntpd.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 1651670d9..2a96ddbd0 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c | |||
@@ -1685,8 +1685,14 @@ update_local_clock(peer_t *p) | |||
1685 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", | 1685 | VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x", |
1686 | rc, tmx.freq, tmx.offset, tmx.status); | 1686 | rc, tmx.freq, tmx.offset, tmx.status); |
1687 | G.kernel_freq_drift = tmx.freq / 65536; | 1687 | G.kernel_freq_drift = tmx.freq / 65536; |
1688 | VERB2 bb_error_msg("update from:%s offset:%+f jitter:%f clock drift:%+.3fppm tc:%d", | 1688 | VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d", |
1689 | p->p_dotted, offset, G.discipline_jitter, (double)tmx.freq / 65536, (int)tmx.constant); | 1689 | p->p_dotted, |
1690 | offset, | ||
1691 | p->lastpkt_delay, | ||
1692 | G.discipline_jitter, | ||
1693 | (double)tmx.freq / 65536, | ||
1694 | (int)tmx.constant | ||
1695 | ); | ||
1690 | 1696 | ||
1691 | return 1; /* "ok to increase poll interval" */ | 1697 | return 1; /* "ok to increase poll interval" */ |
1692 | } | 1698 | } |