diff --git a/Changes b/Changes index 8c26648ff..210eab715 100644 --- a/Changes +++ b/Changes @@ -1760,3 +1760,5 @@ - 'link xx with SSL option enabled on non-SSL compile' was incorrectly printed out as a warning, when in fact it's an error (and was treated as such). Same for ZIP on non-zip compile. Reported by Stealth (#0003833). +- Fixed very silly 'time jumped .. seconds ahead (0 -> ..)' message which + happened on every IRCd boot. diff --git a/src/ircd.c b/src/ircd.c index e06c5fb67..3c024099f 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -1697,7 +1697,7 @@ void SocketLoop(void *dummy) fix_timers(); nextfdlistcheck = 0; } else - if (timeofday - oldtimeofday > POSITIVE_SHIFT_WARN) /* do not set too low or you get false positives */ + if ((oldtimeofday > 0) && (timeofday - oldtimeofday > POSITIVE_SHIFT_WARN)) /* do not set too low or you get false positives */ { /* tdiff = # of seconds of time set forward (eg: 60) */ long tdiff = timeofday - oldtimeofday;