diff options
author | ardi69 <armin@diedering.de> | 2015-04-18 14:08:18 +0200 |
---|---|---|
committer | ardi69 <armin@diedering.de> | 2015-04-18 14:08:18 +0200 |
commit | 6e8f84e1dc06cff6fa9387559992f555182c1774 (patch) | |
tree | 476600f9896fae029880e4049eb4c5e6021b202d /pyload/datatype/File.py | |
parent | fix: config cast (diff) | |
parent | Spare code cosmetics (5) (diff) | |
download | pyload-6e8f84e1dc06cff6fa9387559992f555182c1774.tar.xz |
Merge pull request #3 from vuolter/0.4.10
merge vuolter HEAD
Diffstat (limited to 'pyload/datatype/File.py')
-rw-r--r-- | pyload/datatype/File.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/datatype/File.py b/pyload/datatype/File.py index 713442265..93aa636d7 100644 --- a/pyload/datatype/File.py +++ b/pyload/datatype/File.py @@ -217,7 +217,8 @@ class PyFile(object): """ formats and return wait time in humanreadable format """ seconds = self.waitUntil - time() - if seconds < 0: return "00:00:00" + if seconds < 0: + return "00:00:00" hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) @@ -233,7 +234,8 @@ class PyFile(object): """ formats eta to readable format """ seconds = self.getETA() - if seconds < 0: return "00:00:00" + if seconds < 0: + return "00:00:00" hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) |