update
This commit is contained in:
@@ -20,7 +20,7 @@ const ATTEMPTS_PER_CHECK = 3 # number of ping attempts per check
|
||||
const BACKOFF_BETWEEN_ATTEMPTS = 60 # seconds between attempts
|
||||
const FAILS_TO_REBOOT = 3 # consecutive failed checks required to trigger reboot
|
||||
const COOLDOWN_AFTER_REBOOT_SECS = 600 # do not reboot again within this many seconds
|
||||
const DRY_RUN = false # set false to actually reboot
|
||||
const DRY_RUN = true # set false to actually reboot
|
||||
const CHECK_INTERVAL_SECS = 60 # run a check every CHECK_INTERVAL_SECS seconds
|
||||
|
||||
const thisFolderPath = @__DIR__
|
||||
@@ -237,7 +237,7 @@ function perform_check!(st::State)
|
||||
end
|
||||
|
||||
success = false
|
||||
last_res7ult = nothing
|
||||
last_result = nothing
|
||||
for i in 1:ATTEMPTS_PER_CHECK
|
||||
ok, result = check_router_once(ROUTER_IP)
|
||||
last_result = result
|
||||
|
||||
Reference in New Issue
Block a user