summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-04-09 18:38:59 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-04-09 18:38:59 +0100
commit87770300d590eb105694e1cbc24aa798f788ca52 (patch)
tree7b93e1f9b3befed2743fafae2ed4f0e7c4ca206e /synapse
parentv0.27.3-rc2 (diff)
downloadsynapse-87770300d590eb105694e1cbc24aa798f788ca52.tar.xz
Fix msec to sec
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/__init__.py2
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 (