aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-05-27 10:09:59 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-05-27 10:25:03 +0300
commite4c5349a4ab2851deaf7794ef9d469f4ec9f4ff2 (patch)
tree7c4c7ce499182fe53b49f17afecd886d448e3119 /main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch
parent3737eae3be7c465f3b0ef9c5c87b2a21024fd19e (diff)
downloadaports-e4c5349a4ab2851deaf7794ef9d469f4ec9f4ff2.tar.bz2
aports-e4c5349a4ab2851deaf7794ef9d469f4ec9f4ff2.tar.xz
main/busybox: cherry-pick ntpd fixes from master and mailing list
Diffstat (limited to 'main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch')
-rw-r--r--main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch b/main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch
new file mode 100644
index 0000000000..e07c940ced
--- /dev/null
+++ b/main/busybox/4003-ntpd-print-packet-delay-in-clock-update-message.patch
@@ -0,0 +1,37 @@
+From 03718bb2743fbd772732a2c57c76c1c56fa9cd37 Mon Sep 17 00:00:00 2001
+From: Denys Vlasenko <vda.linux@googlemail.com>
+Date: Wed, 24 Feb 2016 01:22:45 +0100
+Subject: [PATCH 4003/4007] 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>
+---
+ networking/ntpd.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/networking/ntpd.c b/networking/ntpd.c
+index 1651670..2a96ddb 100644
+--- a/networking/ntpd.c
++++ b/networking/ntpd.c
+@@ -1685,8 +1685,14 @@ update_local_clock(peer_t *p)
+ VERB4 bb_error_msg("adjtimex:%d freq:%ld offset:%+ld status:0x%x",
+ rc, tmx.freq, tmx.offset, tmx.status);
+ G.kernel_freq_drift = tmx.freq / 65536;
+- VERB2 bb_error_msg("update from:%s offset:%+f jitter:%f clock drift:%+.3fppm tc:%d",
+- p->p_dotted, offset, G.discipline_jitter, (double)tmx.freq / 65536, (int)tmx.constant);
++ VERB2 bb_error_msg("update from:%s offset:%+f delay:%f jitter:%f clock drift:%+.3fppm tc:%d",
++ p->p_dotted,
++ offset,
++ p->lastpkt_delay,
++ G.discipline_jitter,
++ (double)tmx.freq / 65536,
++ (int)tmx.constant
++ );
+
+ return 1; /* "ok to increase poll interval" */
+ }
+--
+2.8.3
+