summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-03-30 23:41:46 +0100
committerSadie Powell <sadie@witchery.services>2020-03-30 23:41:46 +0100
commit29addc0799653329981c9741347c0000da451220 (patch)
tree634d0e5c4609fa744f2960cd95950e7fdc1329ab /src
parent25052ccef3c47cc43af9b900a658e5c09e8bec2e (diff)
Fix clock skip warnings being inverted.
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
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);