diff options
author | Neil Johnson <neil@matrix.org> | 2018-08-01 10:20:42 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-08-01 10:20:42 +0100 |
commit | c507fa15ce068b496d320f08fcb6d6aedf4ace32 (patch) | |
tree | 1a82e42d02fed9b2bd58cb3238b777461d48ac34 /synapse/app/homeserver.py | |
parent | mau limts (diff) | |
download | synapse-c507fa15ce068b496d320f08fcb6d6aedf4ace32.tar.xz |
only need to loop if mau limiting is enabled
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/homeserver.py | 3 |
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") |