diff options
author | Kay Sievers <kay@vrfy.org> | 2014-03-21 17:49:50 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-03-21 20:22:38 +0100 |
commit | 18bb8adb06002a5963a3373fa30c12cfa89b9724 (patch) | |
tree | ad55ddf749085afd51aab296a67ed69e7b646eec /src | |
parent | 4644fee04fb515787bcfbba53b3cabe58c81d317 (diff) |
timedated: do not reset poll interval with a spike
Diffstat (limited to 'src')
-rw-r--r-- | src/timedate/timedate-sntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedate-sntp.c b/src/timedate/timedate-sntp.c index e4aad36cc5..cb0bf794f1 100644 --- a/src/timedate/timedate-sntp.c +++ b/src/timedate/timedate-sntp.c @@ -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; } |