mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
fix on-upload hasher (0.11.1 regression)
This commit is contained in:
parent
d0bed95415
commit
d102bb3199
|
@ -1245,7 +1245,9 @@ class Up2k(object):
|
||||||
ret = []
|
ret = []
|
||||||
with open(fsenc(path), "rb", 512 * 1024) as f:
|
with open(fsenc(path), "rb", 512 * 1024) as f:
|
||||||
while fsz > 0:
|
while fsz > 0:
|
||||||
self.pp.msg = "{} MB, {}".format(int(fsz / 1024 / 1024), path)
|
if self.pp:
|
||||||
|
self.pp.msg = "{} MB, {}".format(int(fsz / 1024 / 1024), path)
|
||||||
|
|
||||||
hashobj = hashlib.sha512()
|
hashobj = hashlib.sha512()
|
||||||
rem = min(csz, fsz)
|
rem = min(csz, fsz)
|
||||||
fsz -= rem
|
fsz -= rem
|
||||||
|
|
Loading…
Reference in a new issue