[downloader] Fix original file offset when using delta manifests

This commit is contained in:
derrod 2020-09-09 10:28:28 +02:00
parent e898fe03fc
commit 36d02fa5ce

View file

@ -285,7 +285,7 @@ class DLManager(Process):
# check if new chunk part is wholly contained in the old chunk part
if cp_o <= cp.offset and (cp.offset + cp.size) <= cp_end_o:
references[cp.guid_num] -= 1
re_usable[changed][key] = file_o
re_usable[changed][key] = file_o + (cp.offset - cp_o)
analysis_res.reuse_size += cp.size
break