diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-02-10 14:54:07 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-02-10 14:54:07 +0000 |
commit | fda4422bc9d9f2974d7185011d6d905eea372b09 (patch) | |
tree | f7f346d29ed23a320a1217979db8250a63c11d0d | |
parent | Add performance counters for different stages of loading events (diff) | |
download | synapse-fda4422bc9d9f2974d7185011d6d905eea372b09.tar.xz |
Fix pyflakes
-rw-r--r-- | synapse/storage/_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index c79399fe5e..36455ef93c 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -108,7 +108,7 @@ class PerformanceCounters(object): top_n_counters = ", ".join( "%s(%d): %.3f%%" % (name, count, 100 * ratio) - for ratio, count, name in txn_counters[:limit] + for ratio, count, name in counters[:limit] ) return top_n_counters @@ -151,8 +151,8 @@ class SQLBaseStore(object): ) logger.info( - "Total database time: %.3f%% {%s}", - ratio * 100, top_three_counters + "Total database time: %.3f%% {%s} {%s}", + ratio * 100, top_three_counters, top_3_event_counters ) self._clock.looping_call(loop, 10000) |