]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[BUG 1051] Month off by one in leap second message written to clockstats file, fixed.
authorReg Clemens <clemens@ntp.org>
Sun, 10 Aug 2008 22:18:56 +0000 (18:18 -0400)
committerReg Clemens <clemens@ntp.org>
Sun, 10 Aug 2008 22:18:56 +0000 (18:18 -0400)
bk: 489f69507S8TyIyroctlPhtYs59O6Q

ntpd/refclock_oncore.c

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);
        }