]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: reduce poll adjustment with specific failed tests
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 17 Jun 2020 12:18:49 +0000 (14:18 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 17 Jun 2020 13:59:29 +0000 (15:59 +0200)
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

index 919c15f474fe4e6e1b7e1d6fffdb3efe27c1bc10..53c9ae1bc4810531221c8fd54d3f09da29fc661e 100644 (file)
@@ -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