[downloader] Make read speed actually work (somewhat)

This commit is contained in:
derrod 2020-04-21 20:25:26 +02:00
parent a8a0be5bd2
commit 04cc72d154

View file

@ -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: