1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 10:53:13 +02:00

- Fixed very silly 'time jumped .. seconds ahead (0 -> ..)' message which

happened on every IRCd boot.
This commit is contained in:
Bram Matthys
2009-02-20 13:00:07 +00:00
parent 529bd19465
commit cc8a592557
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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.
+1 -1
View File
@@ -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;