]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[BUG 1051] Month off by one in leap second message written to clockstats
authorHarlan Stenn <stenn@ntp.org>
Sun, 17 Aug 2008 02:42:08 +0000 (22:42 -0400)
committerHarlan Stenn <stenn@ntp.org>
Sun, 17 Aug 2008 02:42:08 +0000 (22:42 -0400)
bk: 48a79000USqFLUorclSQLw3owQ41KA

ChangeLog
ntpd/refclock_oncore.c

index e51b7f287d3b0d5215935428dc3b976a93dde9b5..2d256b128130c9c55a3fb8960ae7db6988363019 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 ---
 
+* [BUG 1051] Month off by one in leap second message written to clockstats
+  file fixed.
 * [Bug 450] Windows only: Under original Windows NT we must not discard the
   wildcard socket to workaround a bug in NT's getsockname().
 * [Bug 1038] Built-in getpass() function also prompts for password if
index f335208f235bae8ca7aa3adf0fc284b57d60a909..e1d23a991845f33d1d730112e158fdb1a7b18dee 100644 (file)
@@ -2916,7 +2916,7 @@ oncore_msg_Gj(
        if (dt) {
                sprintf(Msg, "ONCORE[%d]: Leap second (%d) scheduled for %d%s%d at %d:%d:%d",
                        instance->unit,
-                       dt, buf[9], Month[buf[8]], 256*buf[6]+buf[7],
+                       dt, buf[9], Month[buf[8]-1], 256*buf[6]+buf[7],
                        buf[15], buf[16], buf[17]);
                record_clock_stats(&(instance->peer->srcadr), Msg);
        }