Skip to content

Commit

Permalink
Added pause logic as a comment to the end of silent uploader.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Dec 12, 2020
1 parent 383fbe7 commit bb4dcbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions res/scripts/silent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,3 +249,9 @@ retry ${CURL} --tlsv1.2 \
--header "Connection: keep-alive" \
--write-out "FILE: $FILENAME\nCODE: %{http_code}\nIP: %{remote_ip}\nBYTES: %{size_upload}\nRATE: %{speed_upload}\nTOTAL TIME: %{time_total}\n\n" \
--upload-file "$FILEPATH" "$UPLOAD_PATH"


# # Add a short pause, with the duration determined by the size of the file uploaded.
# PAUSE="`du -b $FILEPATH | awk -F' ' '{print $1}'`"
# bash -c "usleep $(($PAUSE/20))"

0 comments on commit bb4dcbf

Please sign in to comment.