diff options
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 |