summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-05-20 15:06:13 +0200
committerGravatar spoob <spoob@gmx.de> 2009-05-20 15:06:13 +0200
commitf5e35d5e3a4ba33202114034c9daae6d82182b95 (patch)
tree3e04bfbdac296b86948d1088d0f98734c2a5fa34 /module/network
parentfixed some bugs (diff)
downloadpyload-f5e35d5e3a4ba33202114034c9daae6d82182b95.tar.xz
normal name style
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py6
1 files changed, 3 insertions, 3 deletions
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__" :