diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 02:17:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 03:22:32 +0200 |
commit | 000426c9d890ba2a71625a7454f9c573f10b9bae (patch) | |
tree | 8fa66da5061b850778f72f84038d9bb8bfa31f2f /pyload/network/XDCCRequest.py | |
parent | 'from os' -> 'import os' and so on... (diff) | |
download | pyload-000426c9d890ba2a71625a7454f9c573f10b9bae.tar.xz |
'from time' -> 'import time' and so on...
Diffstat (limited to 'pyload/network/XDCCRequest.py')
-rw-r--r-- | pyload/network/XDCCRequest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/XDCCRequest.py b/pyload/network/XDCCRequest.py index b9e9958aa..0d8e90db9 100644 --- a/pyload/network/XDCCRequest.py +++ b/pyload/network/XDCCRequest.py @@ -4,9 +4,9 @@ import os import socket import struct +import time from select import select -from time import time from pyload.plugin.Plugin import Abort @@ -48,7 +48,7 @@ class XDCCRequest(object): def download(self, ip, port, filename, irc, progress=None): ircbuffer = "" - lastUpdate = time() + lastUpdate = time.time() cumRecvLen = 0 dccsock = self.createSocket() @@ -85,7 +85,7 @@ class XDCCRequest(object): cumRecvLen += dataLen - now = time() + now = time.time() timespan = now - lastUpdate if timespan > 1: self.speed = cumRecvLen / timespan |