From 29addc0799653329981c9741347c0000da451220 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 30 Mar 2020 23:41:46 +0100 Subject: Fix clock skip warnings being inverted. --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4d4c9a6ea..956fb1155 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -141,7 +141,7 @@ namespace if (!ServerInstance->Config->TimeSkipWarn) return; - time_t timediff = oldtime - newtime; + time_t timediff = newtime - oldtime; if (timediff > ServerInstance->Config->TimeSkipWarn) ServerInstance->SNO->WriteToSnoMask('a', "\002Performance warning!\002 Server clock jumped forwards by %lu seconds!", timediff); -- cgit v1.2.3