From f5e35d5e3a4ba33202114034c9daae6d82182b95 Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 20 May 2009 13:06:13 +0000 Subject: normal name style --- module/network/Request.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/network/Request.py') 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__" : -- cgit v1.2.3