ntpd: show real, unclamped delays on low-latency networks
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Aug 2018 09:03:55 +0000 (11:03 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 3 Aug 2018 09:14:22 +0000 (11:14 +0200)
commit9b1c8bf89be668a533505e5fb4405bac6eed651c
tree53255856b64fae3c5001426c42655bb93dd7e2c9
parenta380aacca61271e24656df237d73fb9930702ff1
ntpd: show real, unclamped delays on low-latency networks

On fast network, I've seen "delay:0.002000" shown for all packets,
thus completely losing information on what real delays are.

The new code is careful to not reject packets with tiny delays
if the delay "grows a lot" but is still tiny:
0.000009 is "much larger" than 0.000001 (nine times larger),
but is still very good small delay.

function                                             old     new   delta
recv_and_process_peer_pkt                            863     889     +26

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