mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-28 21:22:02 +00:00
Fix msec to sec
This commit is contained in:
parent
9a311adfea
commit
87770300d5
@ -276,7 +276,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
def _count_r30_users(txn):
|
def _count_r30_users(txn):
|
||||||
thirty_days_in_secs = 86400 * 30
|
thirty_days_in_secs = 86400 * 30
|
||||||
now = int(self._clock.time_msec())
|
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 = """
|
sql = """
|
||||||
SELECT platform, COALESCE(count(*), 0) FROM (
|
SELECT platform, COALESCE(count(*), 0) FROM (
|
||||||
|
Loading…
Reference in New Issue
Block a user