summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-08-02 23:03:01 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-08-02 23:03:01 +0100
commitc0affa7b4ff1e0775a8a5e6d704596b5383112a5 (patch)
tree029c0156eed7b29890fcea04657a33eef712081f /synapse
parenttypo (diff)
downloadsynapse-c0affa7b4ff1e0775a8a5e6d704596b5383112a5.tar.xz
update generate_monthly_active_users, and reap_monthly_active_users
Diffstat (limited to 'synapse')
-rwxr-xr-xsynapse/app/homeserver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 5f0ca51ac7..7d4ea493bc 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -520,14 +520,14 @@ def run(hs):
     # table will decrease
     clock.looping_call(generate_user_daily_visit_stats, 5 * 60 * 1000)
     clock.looping_call(
-        MonthlyActiveUsersStore(hs).reap_monthly_active_users, 1000 * 60 * 60
+        hs.get_datastore().reap_monthly_active_users, 1000 * 60 * 60
     )
 
     @defer.inlineCallbacks
     def generate_monthly_active_users():
         count = 0
         if hs.config.limit_usage_by_mau:
-            count = yield hs.get_datastore().count_monthly_users()
+            count = yield hs.get_datastore().get_monthly_active_count()
         current_mau_gauge.set(float(count))
         max_mau_value_gauge.set(float(hs.config.max_mau_value))