From feef0dd983f4710718f8e84fdaea6a516e19e6f3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 17 Jun 2020 14:18:49 +0200 Subject: [PATCH] ntp: reduce poll adjustment with specific failed tests Reduce the poll increment for measurements that are rejected due to a failed maxdelay* test in order to better track the source. --- ntp_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntp_core.c b/ntp_core.c index 919c15f..53c9ae1 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -1796,8 +1796,8 @@ process_response(NCR_Instance inst, NTP_Local_Address *local_addr, break; } } else { - /* Slowly increase the polling interval if we can't get good packet */ - adjust_poll(inst, 0.1); + /* Slowly increase the polling interval if we can't get a good response */ + adjust_poll(inst, testD ? 0.02 : 0.1); } /* If in client mode, no more packets are expected to be coming from the