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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a306e3266ad705474f18c19bd201be78fb9c33aa;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 f335208f23..e1d23a9918 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); }