mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[downloader] Make read speed actually work (somewhat)
This commit is contained in:
parent
a8a0be5bd2
commit
04cc72d154
|
@ -228,7 +228,11 @@ class DLManager(Process):
|
||||||
|
|
||||||
if res.chunk_guid:
|
if res.chunk_guid:
|
||||||
self.bytes_written_since_last += res.size
|
self.bytes_written_since_last += res.size
|
||||||
|
# if there's no shared memory we must have read from disk.
|
||||||
|
if not res.shm:
|
||||||
|
self.bytes_read_since_last += res.size
|
||||||
self.num_processed_since_last += 1
|
self.num_processed_since_last += 1
|
||||||
|
|
||||||
except Empty:
|
except Empty:
|
||||||
continue
|
continue
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in a new issue