diff options
Diffstat (limited to 'module/network/HTTPChunk.py')
-rw-r--r-- | module/network/HTTPChunk.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py index f26e681b6..48ebc13f3 100644 --- a/module/network/HTTPChunk.py +++ b/module/network/HTTPChunk.py @@ -92,6 +92,10 @@ class HTTPChunk(HTTPBase): 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.arrived += size |