From: Miroslav Lichvar Date: Mon, 27 Aug 2018 12:12:23 +0000 (+0200) Subject: ntp: remove unnecessary constant X-Git-Tag: 3.4-pre1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7352e470e10689b349681cdb6b71b4ccddd7f43a;p=thirdparty%2Fchrony.git ntp: remove unnecessary constant --- diff --git a/ntp_core.c b/ntp_core.c index ddf73961..086d706d 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -282,9 +282,6 @@ static ARR_Instance broadcasts; /* Maximum poll interval set by KoD RATE */ #define MAX_KOD_RATE_POLL SRC_DEFAULT_MAXPOLL -/* Maximum number of missed responses to follow peer's polling interval */ -#define MAX_PEER_POLL_TX 8 - /* Maximum number of missed responses to accept samples using old timestamps in the interleaved client/server mode */ #define MAX_CLIENT_INTERLEAVED_TX 4 @@ -813,7 +810,7 @@ get_transmit_poll(NCR_Instance inst) /* In symmetric mode, if the peer is responding, use shorter of the local and remote poll interval, but not shorter than the minimum */ if (inst->mode == MODE_ACTIVE && poll > inst->remote_poll && - inst->tx_count < MAX_PEER_POLL_TX) + SRC_IsReachable(inst->source)) poll = MAX(inst->remote_poll, inst->minpoll); return poll;