0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 01:23:51 +01:00
This commit is contained in:
Richard van der Hoff 2019-06-24 11:16:13 +01:00
parent dc94773e60
commit 1793de6c6d

View file

@ -363,14 +363,10 @@ class SQLBaseStore(object):
duration = time_now - time_then
ratio = (curr - prev) / duration
top_three_counters = self._txn_perf_counters.interval(
duration, limit=3
)
top_three_counters = self._txn_perf_counters.interval(duration, limit=3)
perf_logger.info(
"Total database time: %.3f%% {%s}",
ratio * 100,
top_three_counters,
"Total database time: %.3f%% {%s}", ratio * 100, top_three_counters
)
self._clock.looping_call(loop, 10000)