Skip to content

Commit cf653df

Browse files
committed
Take filesize to size of downloaded file if missing
1 parent 7573bc6 commit cf653df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/stashcp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ def doStashCpSingle(sourceFile, destination, debug=False):
221221
payload['status']=status
222222
payload['tries']=tries
223223
payload['cache']=nearest_cache
224+
if 'filesize' not in payload:
225+
payload['filesize']=dlSz
224226
es_send(payload)
225227

226228
else: #pull from origin
@@ -249,6 +251,8 @@ def doStashCpSingle(sourceFile, destination, debug=False):
249251
payload['start3']=start3
250252
payload['end3']=end3
251253
payload['cache']=nearest_cache
254+
if 'filesize' not in payload:
255+
payload['filesize']=dlSz
252256
es_send(payload)
253257
if xrd_exit == '0':
254258
return 0

0 commit comments

Comments
 (0)