tell the number of chunks to transfer beforehand

This commit is contained in:
HappyZ 2019-02-09 20:40:58 -06:00
parent 7e1a72895d
commit ac85099022
1 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,8 @@ def diagnosis_push_file(
symbol = '>'
startTime = int(time.time() * 1000)
totalChunks = 0
dpt.info_print("total chunks to transfer: {:.2f}"
.format(os.path.getsize(localfp) / chunkSize))
with open(localfp, 'rb') as f:
while 1:
chunk = f.read(chunkSize)