Made sure utils.timeElapsed doesn't go all decimal on me.

This commit is contained in:
Jeremy Fincher 2003-06-03 03:18:14 +00:00
parent ae3623f49f
commit a35bf21b4e

View File

@ -91,6 +91,7 @@ def abbrev(strings):
def timeElapsed(elapsed, leadingZeroes=False, years=True, weeks=True, def timeElapsed(elapsed, leadingZeroes=False, years=True, weeks=True,
days=True, hours=True, minutes=True, seconds=True): days=True, hours=True, minutes=True, seconds=True):
elapsed = int(elapsed)
assert years or weeks or days or \ assert years or weeks or days or \
hours or minutes or seconds, 'One flag must be True' hours or minutes or seconds, 'One flag must be True'
ret = [] ret = []