Skip to content

Commit

Permalink
Update ctbcap
Browse files Browse the repository at this point in the history
  • Loading branch information
glinojop authored Jan 5, 2025
1 parent 64432ff commit 73970a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ctbcap
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,13 @@ watchdog() {
rm -f "${LOG_PATH}/${MODEL}-${PLATFORM}.online" # Delete online flag file

# Too short time may cause the platform to enable CAPTCHA to you.
echo "[$(date "+%Y%m%d-%H%M%S")] Sleep for around 5 min & try reconnect..."
sleep $(utils random_num 240 360) # Random num B/E 240 - 360
echo "[$(date "+%Y%m%d-%H%M%S")] Sleep for around 2 min & try reconnect..."
sleep $(utils random_num 60 120) # Random num B/E 240 - 360
;;
1)
# Too short time may cause the platform to enable CAPTCHA to you.
echo "[$(date "+%Y%m%d-%H%M%S")] Sleep for around 10 min..."
sleep $(utils random_num 480 720)
echo "[$(date "+%Y%m%d-%H%M%S")] Sleep for around 2 min..."
sleep $(utils random_num 60 120)
;;
2) sleep $(utils random_num 4 6) ;;
3)
Expand Down

0 comments on commit 73970a5

Please sign in to comment.