diff options
author | spoob <spoob@gmx.de> | 2009-05-20 15:06:13 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-05-20 15:06:13 +0200 |
commit | f5e35d5e3a4ba33202114034c9daae6d82182b95 (patch) | |
tree | 3e04bfbdac296b86948d1088d0f98734c2a5fa34 | |
parent | fixed some bugs (diff) | |
download | pyload-f5e35d5e3a4ba33202114034c9daae6d82182b95.tar.xz |
normal name style
-rw-r--r-- | module/download_thread.py | 2 | ||||
-rwxr-xr-x | module/network/Request.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/module/download_thread.py b/module/download_thread.py index 171969c64..896553a1c 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -64,7 +64,7 @@ class Status(object): return self.pyfile.plugin.req.get_ETA() def get_speed(self): return self.pyfile.plugin.req.get_speed() - def kB_left(): + def kB_left(self): return self.pyfile.plugins.req.kB_left() diff --git a/module/network/Request.py b/module/network/Request.py index 07b0129d2..7ddeec876 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -106,19 +106,19 @@ class Request: self.dl = False return True - def getSpeed(self): + def get_speed(self): try: return (self.dl_arrived / (time.time() - self.dl_time)) / 1024 except: return "No Download" - def getETA(self): + def get_ETA(self): try: return (self.dl_size - self.dl_arrived) / (self.dl_arrived / (time.time() - self.dl_time)) except: return "No Download" - def kBleft(self): + def kB_left(self): return (self.dl_size - self.dl_arrived) / 1024 if __name__ == "__main__" : |