summary refs log tree commit diff
path: root/synapse/app/homeserver.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-01 10:20:42 +0100
committerNeil Johnson <neil@matrix.org>2018-08-01 10:20:42 +0100
commitc507fa15ce068b496d320f08fcb6d6aedf4ace32 (patch)
tree1a82e42d02fed9b2bd58cb3238b777461d48ac34 /synapse/app/homeserver.py
parentmau limts (diff)
downloadsynapse-c507fa15ce068b496d320f08fcb6d6aedf4ace32.tar.xz
only need to loop if mau limiting is enabled
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-xsynapse/app/homeserver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 82979e7d1b..2da60682ec 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -531,7 +531,8 @@ def run(hs):
         limit_usage_by_mau_gauge.set(float(hs.config.limit_usage_by_mau))
 
     generate_monthly_active_users()
-    clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
+    if hs.config.limit_usage_by_mau:
+        clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
 
     if hs.config.report_stats:
         logger.info("Scheduling stats reporting for 3 hour intervals")