mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:55:07 -05:00
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.
This commit is contained in:
@@ -803,6 +803,8 @@ NCR_ResetInstance(NCR_Instance instance)
|
|||||||
void
|
void
|
||||||
NCR_ResetPoll(NCR_Instance instance)
|
NCR_ResetPoll(NCR_Instance instance)
|
||||||
{
|
{
|
||||||
|
instance->poll_score = 0.0;
|
||||||
|
|
||||||
if (instance->local_poll != instance->minpoll) {
|
if (instance->local_poll != instance->minpoll) {
|
||||||
instance->local_poll = instance->minpoll;
|
instance->local_poll = instance->minpoll;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user