fix: increase the count of ping retries
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user