modified sleep length

This commit is contained in:
Michael Krayer 2023-07-26 16:42:24 +02:00
parent 335cd792de
commit 83866d08fd
1 changed files with 1 additions and 6 deletions

View File

@ -237,13 +237,8 @@ elif [[ ${scriptmode} == 'push' ]]; then
local chunk_file=$(realpath $1)
local chunk_size=$2
while ! ([[ -f ${chunk_file} ]] && [[ $(stat --printf=%s ${chunk_file}) -eq ${chunk_size} ]]); do
sleep 10
sleep 1
done
# local cur_size=$(stat --printf=%s ${chunk_file})
# while ; do
# sleep 10
# cur_size=$(stat --printf=%s ${chunk_file})
# done
lftp sftp://${bwda_acc}@${bwda_url} -e "cd ${rdir_target}; lcd ${work_dir}; put ${chunk_file}; bye"
return $?
}