fix: increase the count of ping retries
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ upload
|
||||
clear_dir
|
||||
clear_history
|
||||
|
||||
send_ping
|
||||
send_mail_content "TRUE" "The file was successfully uploaded at $(date +"%Y-%m-%d %H:%M:%S %Z")."
|
||||
send_ping
|
||||
|
||||
color none ""
|
||||
|
||||
+1
-1
@@ -121,7 +121,7 @@ function send_ping() {
|
||||
return
|
||||
fi
|
||||
|
||||
wget "${PING_URL}" -T 10 -t 5 -O /dev/null -q
|
||||
wget "${PING_URL}" -T 15 -t 10 -O /dev/null -q
|
||||
if [[ $? != 0 ]]; then
|
||||
color red "ping sending failed"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user