mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:54:52 -04:00
Add option to track MAU stats (but not limit people) (#3830)
This commit is contained in:
parent
df758e155d
commit
835779f7fb
7 changed files with 91 additions and 34 deletions
|
@ -535,7 +535,7 @@ def run(hs):
|
|||
current_mau_count = 0
|
||||
reserved_count = 0
|
||||
store = hs.get_datastore()
|
||||
if hs.config.limit_usage_by_mau:
|
||||
if hs.config.limit_usage_by_mau or hs.config.mau_stats_only:
|
||||
current_mau_count = yield store.get_monthly_active_count()
|
||||
reserved_count = yield store.get_registered_reserved_users_count()
|
||||
current_mau_gauge.set(float(current_mau_count))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue