mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 09:43:46 +01:00
Log database time every 10s and log as percentage
This commit is contained in:
parent
75656712e3
commit
66fde49f07
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue