0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-05 10:48:46 +02:00

Log database time every 10s and log as percentage

This commit is contained in:
Erik Johnston 2015-02-09 14:45:15 +00:00
parent 75656712e3
commit 66fde49f07

View file

@ -103,9 +103,9 @@ class SQLBaseStore(object):
ratio = (curr - prev)/(time_now - time_then)
logger.info("Total database time: %.3f", ratio)
logger.info("Total database time: %.3f%", ratio * 100)
self._clock.looping_call(loop, 1000)
self._clock.looping_call(loop, 10000)
@defer.inlineCallbacks
def runInteraction(self, desc, func, *args, **kwargs):