summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-11-05 05:05:48 +1100
committerGitHub <noreply@github.com>2019-11-05 05:05:48 +1100
commit4e1c7b79fa3498c48106c17d0edbab2f7bcc0c38 (patch)
treeab008c1ce8328f83e9c0002afe56091d5c333667 /synapse/server.py
parentdocument the REPLICATE command a bit better (#6305) (diff)
downloadsynapse-4e1c7b79fa3498c48106c17d0edbab2f7bcc0c38.tar.xz
Remove the psutil dependency (#6318)
* remove psutil and replace with resource
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index f8aeebcff8..90c3b072e8 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -221,6 +221,7 @@ class HomeServer(object):
         self.hostname = hostname
         self._building = {}
         self._listening_services = []
+        self.start_time = None
 
         self.clock = Clock(reactor)
         self.distributor = Distributor()
@@ -240,6 +241,7 @@ class HomeServer(object):
             datastore = self.DATASTORE_CLASS(conn, self)
             self.datastores = DataStores(datastore, conn, self)
             conn.commit()
+        self.start_time = int(self.get_clock().time())
         logger.info("Finished setting up.")
 
     def setup_master(self):