]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
reference: update leap status right after leap second
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 24 Mar 2015 17:04:09 +0000 (18:04 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 27 Mar 2015 09:37:54 +0000 (10:37 +0100)
Don't wait for the next update, there may not be any before the end of
the day.

reference.c

index 4cb49d093dcef9af028903a2879b49903234e063..86208e5681a004f542eac05964826f65ce605fd7 100644 (file)
@@ -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;
 }
 
 /* ================================================== */