reference: update leap status right after leap second
Don't wait for the next update, there may not be any before the end of the day.
This commit is contained in:
parent
3f9691baff
commit
bb21841659
1 changed files with 8 additions and 0 deletions
|
@ -683,6 +683,14 @@ leap_end_timeout(void *arg)
|
|||
{
|
||||
leap_timer_running = 0;
|
||||
leap_in_progress = 0;
|
||||
our_leap_sec = 0;
|
||||
|
||||
if (leap_mode == REF_LeapModeSystem)
|
||||
LCL_SetSystemLeap(0);
|
||||
|
||||
if (our_leap_status == LEAP_InsertSecond ||
|
||||
our_leap_status == LEAP_DeleteSecond)
|
||||
our_leap_status = LEAP_Normal;
|
||||
}
|
||||
|
||||
/* ================================================== */
|
||||
|
|
Loading…
Reference in a new issue