Log database time every 10s and log as percentage

pull/55/head
Erik Johnston 2015-02-09 14:45:15 +00:00
parent 75656712e3
commit 66fde49f07
1 changed files with 2 additions and 2 deletions

View File

@ -103,9 +103,9 @@ class SQLBaseStore(object):
ratio = (curr - prev)/(time_now - time_then)
logger.info("Total database time: %.3f", ratio)
logger.info("Total database time: %.3f%", ratio * 100)
self._clock.looping_call(loop, 1000)
self._clock.looping_call(loop, 10000)
@defer.inlineCallbacks
def runInteraction(self, desc, func, *args, **kwargs):