[systemd-commits] src/timedate
Kay Sievers
kay at kemper.freedesktop.org
Fri Mar 21 12:22:59 PDT 2014
src/timedate/timedate-sntp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 18bb8adb06002a5963a3373fa30c12cfa89b9724
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Mar 21 17:49:50 2014 +0100
timedated: do not reset poll interval with a spike
diff --git a/src/timedate/timedate-sntp.c b/src/timedate/timedate-sntp.c
index e4aad36..cb0bf79 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;
}
More information about the systemd-commits
mailing list