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:
parent
0db30fd0b1
commit
0c38e4a6ca
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue