ntpd: print packet delay in clock update message
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Feb 2016 00:22:45 +0000 (01:22 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 24 Feb 2016 00:22:45 +0000 (01:22 +0100)
function                                             old     new   delta
update_local_clock                                   820     826      +6

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

index 1651670d9e3b8d617e8682279122c8fc7eb72ce2..2a96ddbd0675c374a84e444f486d9bcc44264f28 100644 (file)
@@ -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" */
 }