mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
timedated: do not reset poll interval with a spike
This commit is contained in:
parent
4644fee04f
commit
18bb8adb06
@ -442,7 +442,7 @@ static void sntp_adjust_poll(SNTPContext *sntp, double offset, bool spike) {
|
||||
}
|
||||
|
||||
/* set to minimal poll interval */
|
||||
if (fabs(offset) > NTP_ACCURACY_SEC) {
|
||||
if (!spike && fabs(offset) > NTP_ACCURACY_SEC) {
|
||||
sntp->poll_interval_usec = NTP_POLL_INTERVAL_MIN_SEC * USEC_PER_SEC;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user