mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix pyflakes
This commit is contained in:
parent
d7c7efb691
commit
fda4422bc9
@ -108,7 +108,7 @@ class PerformanceCounters(object):
|
|||||||
|
|
||||||
top_n_counters = ", ".join(
|
top_n_counters = ", ".join(
|
||||||
"%s(%d): %.3f%%" % (name, count, 100 * ratio)
|
"%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
|
return top_n_counters
|
||||||
@ -151,8 +151,8 @@ class SQLBaseStore(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
"Total database time: %.3f%% {%s}",
|
"Total database time: %.3f%% {%s} {%s}",
|
||||||
ratio * 100, top_three_counters
|
ratio * 100, top_three_counters, top_3_event_counters
|
||||||
)
|
)
|
||||||
|
|
||||||
self._clock.looping_call(loop, 10000)
|
self._clock.looping_call(loop, 10000)
|
||||||
|
Loading…
Reference in New Issue
Block a user