bk: 4f5f11ddilSDmFhnmyQcw3dxkm9F2A
+* [Bug 2160] Note if leapseconds file is past its prime.
* Use GetSystemTimePreciseAsFileTime() on Windows 8.
(4.2.7p263) 2012/03/13 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2156] clock instability with LOCAL driver, from Miroslav Lichvar.
const char *value;
int len;
double old_drift;
+ l_fp now;
#ifndef VMS
const char temp_ext[] = ".TEMP";
#else
break;
}
- if (leap_file(fp) < 0)
+ if (leap_file(fp) < 0) {
msyslog(LOG_ERR,
"format error leapseconds file %s",
value);
- else
+ } else {
+ get_systime(&now);
mprintf_event(EVNT_TAI, NULL,
- "%d leap %s expire %s", leap_tai,
+ "%d leap %s %s %s",
+ leap_tai,
fstostr(leap_sec),
+ (now.l_ui > leap_expire)
+ ? "expired"
+ : "expires",
fstostr(leap_expire));
+ }
fclose(fp);
break;