[Git][NTPsec/ntpsec][master] Fix for refclock poll time ramp up
Hal Murray
gitlab at mg.gitlab.com
Wed Jul 6 07:00:10 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
5d45b6a5 by Hal Murray at 2016-07-05T23:59:39-07:00
Fix for refclock poll time ramp up
- - - - -
1 changed file:
- ntpd/ntp_config.c
Changes:
=====================================
ntpd/ntp_config.c
=====================================
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -3157,6 +3157,7 @@ config_peers(
SET_PORT(&peeraddr, NTP_PORT);
if (is_sane_resolved_address(&peeraddr,
curr_peer->host_mode)) {
+ uint8_t maxpoll = curr_peer->maxpoll;
struct peer *peer = peer_config(
&peeraddr,
NULL,
@@ -3181,7 +3182,7 @@ config_peers(
* timer, since the clock may
* have requirements for this.
*/
- if (peer->maxpoll == 0)
+ if (maxpoll == 0)
peer->maxpoll = peer->minpoll;
clktype = (uint8_t)REFCLOCKTYPE(&peer->srcadr);
unit = REFCLOCKUNIT(&peer->srcadr);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5d45b6a5cfeedb65af481eae2738a6b75ce534bf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160706/a5309662/attachment.html>
More information about the vc
mailing list