ntp: don't reset polling interval when switching to/from online

This allows chronyd to ramp up the polling interval even when the source
is frequently switched between the online and offline modes.
This commit is contained in:
Miroslav Lichvar
2016-11-23 12:45:11 +01:00
parent 3a67dedad6
commit 4d7eb2f7a6
3 changed files with 12 additions and 3 deletions

View File

@@ -851,6 +851,7 @@ slew_sources(struct timespec *raw,
if (record->remote_addr) {
if (change_type == LCL_ChangeUnknownStep) {
NCR_ResetInstance(record->data);
NCR_ResetPoll(record->data);
} else {
NCR_SlewTimes(record->data, cooked, dfreq, doffset);
}