diff --git a/scripts/library_run.py b/scripts/library_run.py index 012b5c5..9778e4a 100644 --- a/scripts/library_run.py +++ b/scripts/library_run.py @@ -1659,7 +1659,8 @@ def process(src, args, dest=None, origin=None): # mismatch is retried rather than reported straight away. h_loc, n_loc = _sha_local(loc_out) # 抽样指纹(首/中/尾各 8 MB)—— 与共享盘上的副本比对,不再整文件回读。 - smp_loc, smp_n = _sha_sample(loc_out, n_loc, "encoded output") + # `_sha_sample` 返回 (指纹, size, 实读字节);这里只留指纹与实读字节,size 用 n_loc 自己那份。 + smp_loc, _smp_size, smp_n = _sha_sample(loc_out, n_loc, "encoded output") last = "" for up in range(1, 3): if not copy_local_to_remote(loc_out, remote_tmp):