mirror of
https://github.com/derrod/legendary.git
synced 2025-01-03 04:45:28 +00:00
[downloader] Fix original file offset when using delta manifests
This commit is contained in:
parent
e898fe03fc
commit
36d02fa5ce
|
@ -285,7 +285,7 @@ class DLManager(Process):
|
||||||
# check if new chunk part is wholly contained in the old chunk part
|
# 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:
|
if cp_o <= cp.offset and (cp.offset + cp.size) <= cp_end_o:
|
||||||
references[cp.guid_num] -= 1
|
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
|
analysis_res.reuse_size += cp.size
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue