diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-04-09 18:38:59 +0100 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-04-09 18:38:59 +0100 |
commit | 87770300d590eb105694e1cbc24aa798f788ca52 (patch) | |
tree | 7b93e1f9b3befed2743fafae2ed4f0e7c4ca206e /synapse/storage | |
parent | v0.27.3-rc2 (diff) | |
download | synapse-87770300d590eb105694e1cbc24aa798f788ca52.tar.xz |
Fix msec to sec
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 01c580b66e..e736a857ea 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -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 ( |