summaryrefslogtreecommitdiff
path: root/src/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.py')
-rw-r--r--src/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.py b/src/common.py
index 647454cb..aae5928c 100644
--- a/src/common.py
+++ b/src/common.py
@@ -233,6 +233,8 @@ def parse_secs_to_str(duration=0):
result += '%sh' % hours if hours else ''
result += '%sm' % mins if mins else ''
result += '%ss' % secs if secs else ''
+ if not result:
+ result = '0s'
return result
def parse_command_args_to_alias(arg, strto):