summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-04-09 18:43:48 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-04-09 18:43:48 +0100
commit61b439c90437527afdfa6b46e5ab88de6b074792 (patch)
treeccba6147457ab00c3b59cf3f5f31713466d002ba /synapse/storage/__init__.py
parentFix msec to sec (diff)
downloadsynapse-61b439c90437527afdfa6b46e5ab88de6b074792.tar.xz
Fix msec to sec, again
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index e736a857ea..417b9aa2a8 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -275,9 +275,9 @@ 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/1000 - thirty_days_in_secs
-
+            now = int(self._clock.time())
+            thirty_days_ago_in_secs = now - thirty_days_in_secs
+            print str(thirty_days_ago_in_secs)
             sql = """
                 SELECT platform, COALESCE(count(*), 0) FROM (
                      SELECT