diff --git a/oxlib/format.py b/oxlib/format.py index cf7b102..62bd1ca 100644 --- a/oxlib/format.py +++ b/oxlib/format.py @@ -174,7 +174,7 @@ def formatDuration(ms, verbosity=0, years=True, hours=True, milliseconds=True): >>> formatDuration(1000 * 30, hours=False, milliseconds=False) '00:30' ''' - if not ms: + if not ms and ms != 0: return '' if years: y = int(ms / 31536000000) diff --git a/setup.py b/setup.py index e8e4cdd..4b5e00f 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup, find_packages setup( name="oxlib", version="0.1", - description="python-oxlib some tools to build toos", + description="python-oxlib some tools to build tools", author="0x", author_email="code@0xdb.org", url="http://code.0xdb.org/oxlib",