nicer to look at duration

This commit is contained in:
Seth Vidal 2013-07-04 15:46:08 -04:00
parent 0033b3dc8f
commit 88caed356a

View file

@ -69,7 +69,7 @@ def search_logs(opts, logfiles):
st = slurp.get('task_start', 0)
end = slurp.get('task_end', 0)
if st and end:
dur = str(float(end) - float(st))
dur = '%.2f' % (float(end) - float(st))
else:
dur = "Unknown"
msg += ' Duration: %s sec\n' % dur