diff options
Diffstat (limited to 'module/network/XDCCBase.py')
-rw-r--r-- | module/network/XDCCBase.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/network/XDCCBase.py b/module/network/XDCCBase.py index 6d9978b80..d36d6e897 100644 --- a/module/network/XDCCBase.py +++ b/module/network/XDCCBase.py @@ -120,6 +120,10 @@ class XDCCDownload(): self.speed = self.speedCalcLen self.speedCalcTime = inttime() self.speedCalcLen = 0 + try: + self.deferred.progress("percent", 100-int((self.size - self.arrived)/float(self.size)*100)) + except: + pass size = len(data) self.speedCalcLen += size self.arrived += size |