diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-03-28 15:06:47 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-03-28 15:06:47 +0100 |
commit | 4e9cfa5b3abd4a71764dd29f53c646f03b60535d (patch) | |
tree | 56365d14f7fa728713c9eba9adc6ca0a1eb6931d /src/inspircd.cpp | |
parent | 63b7384092472aa1395f9254592cf6ce45922bc3 (diff) |
Fix premature overwriting of OLDTIME that resulted in time drifts never being detected
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a67d24a6d..344e2a473 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -789,7 +789,6 @@ int InspIRCd::Run() */ if (TIME.tv_sec != OLDTIME) { - OLDTIME = TIME.tv_sec; #ifndef _WIN32 getrusage(RUSAGE_SELF, &ru); stats->LastSampled = TIME; @@ -816,6 +815,8 @@ int InspIRCd::Run() { SNO->WriteToSnoMask('d', "\002EH?!\002 -- Time is jumping FORWARDS! Clock skipped %lu secs.", (unsigned long)TIME.tv_sec - OLDTIME); } +
+ OLDTIME = TIME.tv_sec; if ((TIME.tv_sec % 3600) == 0) { |