Minor adjustment to ETA feature

This commit is contained in:
Bernardo Damele
2008-11-20 11:13:04 +00:00
parent 8f74fe2ce9
commit 80425c9ccd
2 changed files with 7 additions and 3 deletions

View File

@@ -67,6 +67,10 @@ def __goInference(payload, expression):
count, value = bisection(payload, expression, length=length)
duration = int(time.time() - start)
if conf.eta and length:
infoMsg = "retrieved: %s" % value
logger.info(infoMsg)
infoMsg = "performed %d queries in %d seconds" % (count, duration)
logger.info(infoMsg)