aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-05-20 02:10:24 +0100
committerGravatar Sadie Powell2023-05-20 02:10:24 +0100
commit22b499fc7b6f831ccd9d3a17326e046faf3ba664 (patch)
tree096c804ad6e0c959fdafc78684a2c182f7ef36ae
parentWe can't explicitly specify the signedness here as it causes issues. (diff)
parentAdd an undocumented build option for unlimiting the main loop. (diff)
Merge branch 'insp3' into master.
-rw-r--r--src/inspircd.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 28070f4e3..f5259c70c 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -658,12 +658,13 @@ void InspIRCd::Run()
UpdateTime();
- /* Run background module timers every few seconds
- * (the docs say modules should not rely on accurate
- * timing using this event, so we dont have to
- * time this exactly).
- */
+ // Normally we want to limit the mainloop to processing data
+ // once a second but this can cause problems with testing
+ // software like irctest. Don't define this unless you know
+ // what you are doing.
+#ifndef INSPIRCD_UNLIMITED_MAINLOOP
if (TIME.tv_sec != OLDTIME)
+#endif
{
CollectStats();
CheckTimeSkip(OLDTIME, TIME.tv_sec);