aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/ntpd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index cfe695631..3c708c1c5 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -1472,12 +1472,6 @@ update_local_clock(peer_t *p)
1472 1472
1473 } else { /* abs_offset <= STEP_THRESHOLD */ 1473 } else { /* abs_offset <= STEP_THRESHOLD */
1474 1474
1475 if (G.poll_exp < MINPOLL && G.initial_poll_complete) {
1476 VERB4 bb_error_msg("small offset:%+f, disabling burst mode", offset);
1477 G.polladj_count = 0;
1478 G.poll_exp = MINPOLL;
1479 }
1480
1481 /* Compute the clock jitter as the RMS of exponentially 1475 /* Compute the clock jitter as the RMS of exponentially
1482 * weighted offset differences. Used by the poll adjust code. 1476 * weighted offset differences. Used by the poll adjust code.
1483 */ 1477 */
@@ -2242,6 +2236,9 @@ int ntpd_main(int argc UNUSED_PARAM, char **argv)
2242 if (p->p_fd == -1) { 2236 if (p->p_fd == -1) {
2243 /* Time to send new req */ 2237 /* Time to send new req */
2244 if (--cnt == 0) { 2238 if (--cnt == 0) {
2239 VERB4 bb_error_msg("disabling burst mode");
2240 G.polladj_count = 0;
2241 G.poll_exp = MINPOLL;
2245 G.initial_poll_complete = 1; 2242 G.initial_poll_complete = 1;
2246 } 2243 }
2247 send_query_to_peer(p); 2244 send_query_to_peer(p);