summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-24 11:16:13 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-24 11:16:13 +0100
commit1793de6c6da6fc18fc5425dcf1818d8b007ec890 (patch)
tree976391261da7783931f3169f6a1473e8ca606589
parentAvoid raising exceptions in metrics (diff)
downloadsynapse-1793de6c6da6fc18fc5425dcf1818d8b007ec890.tar.xz
black
-rw-r--r--synapse/storage/_base.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index cbd6568c41..b862daab24 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -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)