From: Reg Clemens Date: Sun, 10 Aug 2008 22:18:56 +0000 (-0400) Subject: [BUG 1051] Month off by one in leap second message written to clockstats file, fixed. X-Git-Tag: NTP_4_2_5P125~4^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f83a539dc420a7ef8f8352f824e751a3f895f60a;p=thirdparty%2Fntp.git [BUG 1051] Month off by one in leap second message written to clockstats file, fixed. bk: 489f69507S8TyIyroctlPhtYs59O6Q --- diff --git a/ntpd/refclock_oncore.c b/ntpd/refclock_oncore.c index f335208f2..e1d23a991 100644 --- a/ntpd/refclock_oncore.c +++ b/ntpd/refclock_oncore.c @@ -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); }