Fix pyflakes

This commit is contained in:
Mark Haines 2015-02-10 14:54:07 +00:00
parent d7c7efb691
commit fda4422bc9
1 changed files with 3 additions and 3 deletions

View File

@ -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)