diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-27 15:06:25 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-27 15:06:25 +0200 |
commit | be06c8376a8543c0cf7c1ef5f115d1dbbb26d08f (patch) | |
tree | 9888c763c35de23ec395c54b861e2ac3a23de1bf /module/network/Request.py | |
parent | fixed strange setFossrmatter bug (diff) | |
download | pyload-be06c8376a8543c0cf7c1ef5f115d1dbbb26d08f.tar.xz |
little fixes
Diffstat (limited to 'module/network/Request.py')
-rwxr-xr-x | module/network/Request.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/network/Request.py b/module/network/Request.py index 1b94ed13f..07c1769ec 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -6,7 +6,6 @@ authored by: RaNaN import urllib import urllib2 import cookielib -import Keepalive import base64 import time @@ -112,13 +111,13 @@ class Request: try: return (self.dl_arrived / ((time.time() if self.dl else self.dl_finished) - self.dl_time )) / 1024 except: - return "No Download" + return 0 def get_ETA(self): try: return (self.dl_size - self.dl_arrived) / (self.dl_arrived / (time.time() - self.dl_time)) except: - return "No Download" + return 0 def kB_left(self): return (self.dl_size - self.dl_arrived) / 1024 |