From 0c38e4a6cad517b8aba4c3007789a5fafa306035 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 15 Jun 2023 14:09:21 +0200 Subject: [PATCH] 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. --- ntp_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntp_core.c b/ntp_core.c index 02394b8..9128d77 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;