Fix msec to sec

pull/3095/head
Neil Johnson 2018-04-09 18:38:59 +01:00
parent 9a311adfea
commit 87770300d5
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ class DataStore(RoomMemberStore, RoomStore,
def _count_r30_users(txn):
thirty_days_in_secs = 86400 * 30
now = int(self._clock.time_msec())
thirty_days_ago_in_secs = now - thirty_days_in_secs
thirty_days_ago_in_secs = now/1000 - thirty_days_in_secs
sql = """
SELECT platform, COALESCE(count(*), 0) FROM (