bk: 50472a63CpiY3iuheZUEE84wWArE2g
+* [Bug 2160] Log warning about expired leapseconds file.
(4.2.7p301) 2012/09/03 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2164] Greater precision needed for ntpq offset report.
* Clean the man5_MANS in ntpd/ .
struct peer * p;
struct peer * next_peer;
l_fp now;
+ static int leap_warn_log = FALSE;
/*
* The basic timerevent is one second. This is used to adjust the
write_stats();
if (sys_tai != 0) {
get_systime(&now);
- if (now.l_ui > leap_expire)
+ if (now.l_ui > leap_expire) {
report_event(EVNT_LEAPVAL, NULL, NULL);
+ if (leap_warn_log == FALSE) {
+ msyslog(LOG_WARNING,
+ "leapseconds data file has expired.");
+ leap_warn_log = TRUE;
+ }
+ } else
+ leap_warn_log = FALSE;
}
}
}