From 4e9cfa5b3abd4a71764dd29f53c646f03b60535d Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 28 Mar 2013 15:06:47 +0100 Subject: Fix premature overwriting of OLDTIME that resulted in time drifts never being detected --- src/inspircd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3