From 7e22cd90f53ce55af2f46b23293e0dcc869c2976 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Tue, 18 Dec 2018 14:36:11 +0000 Subject: [PATCH] ensure can report mau stats when hs.config.mau_stats_only is set (#4305) * ensure can report mau stats when hs.config.mau_stats_only is set --- changelog.d/4305.bugfix | 1 + synapse/app/homeserver.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/4305.bugfix diff --git a/changelog.d/4305.bugfix b/changelog.d/4305.bugfix new file mode 100644 index 000000000..499fb8207 --- /dev/null +++ b/changelog.d/4305.bugfix @@ -0,0 +1 @@ +The metric synapse_admin_mau:current previously did not update when config.mau_stats_only was set to True diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 023e32fed..f2064f9d0 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -537,7 +537,7 @@ def run(hs): ) start_generate_monthly_active_users() - if hs.config.limit_usage_by_mau: + if hs.config.limit_usage_by_mau or hs.config.mau_stats_only: clock.looping_call(start_generate_monthly_active_users, 5 * 60 * 1000) # End of monthly active user settings