fix: increase the count of ping retries

This commit is contained in:
ttionya
2021-06-09 22:03:09 +08:00
parent 5fbf9e9673
commit e23bea50e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -176,7 +176,7 @@ upload
clear_dir clear_dir
clear_history clear_history
send_ping
send_mail_content "TRUE" "The file was successfully uploaded at $(date +"%Y-%m-%d %H:%M:%S %Z")." send_mail_content "TRUE" "The file was successfully uploaded at $(date +"%Y-%m-%d %H:%M:%S %Z")."
send_ping
color none "" color none ""
+1 -1
View File
@@ -121,7 +121,7 @@ function send_ping() {
return return
fi 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 if [[ $? != 0 ]]; then
color red "ping sending failed" color red "ping sending failed"
else else