From: Miroslav Lichvar Date: Thu, 15 Jun 2023 12:09:21 +0000 (+0200) Subject: ntp: reset poll score X-Git-Tag: 4.4-pre2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c38e4a6cad517b8aba4c3007789a5fafa306035;p=thirdparty%2Fchrony.git ntp: reset poll score When the polling interval is reset (e.g. after replacement), don't forget to reset also the score impacting the next poll adjustment. --- diff --git a/ntp_core.c b/ntp_core.c index 02394b84..9128d77c 100644 --- a/ntp_core.c +++ b/ntp_core.c @@ -803,6 +803,8 @@ NCR_ResetInstance(NCR_Instance instance) void NCR_ResetPoll(NCR_Instance instance) { + instance->poll_score = 0.0; + if (instance->local_poll != instance->minpoll) { instance->local_poll = instance->minpoll;