From d7a76b3b5a0b3e45e30160fdf86ca0d8181a13ed Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 29 Nov 2008 21:35:44 +0000 Subject: [PATCH] Fix #619 return "" instead of "Infinity" if seconds == 0 in ftime --- deluge/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index 8555f0c67..ba029f080 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -284,7 +284,7 @@ def ftime(seconds): Formats a string to show time in a human readable form :param seconds: int, the number of seconds - :returns: a formatted time string, will return 'Infinity' if seconds == 0 + :returns: a formatted time string, will return '' if seconds == 0 :rtype: string **Usage** @@ -294,7 +294,7 @@ def ftime(seconds): """ if seconds == 0: - return "Infinity" + return "" if seconds < 60: return '%ds' % (seconds) minutes = seconds / 60