mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 23:11:34 +01:00
only need to loop if mau limiting is enabled
This commit is contained in:
parent
5bb39b1e0c
commit
c507fa15ce
1 changed files with 2 additions and 1 deletions
|
@ -531,6 +531,7 @@ def run(hs):
|
||||||
limit_usage_by_mau_gauge.set(float(hs.config.limit_usage_by_mau))
|
limit_usage_by_mau_gauge.set(float(hs.config.limit_usage_by_mau))
|
||||||
|
|
||||||
generate_monthly_active_users()
|
generate_monthly_active_users()
|
||||||
|
if hs.config.limit_usage_by_mau:
|
||||||
clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
|
clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
|
||||||
|
|
||||||
if hs.config.report_stats:
|
if hs.config.report_stats:
|
||||||
|
|
Loading…
Reference in a new issue