This commit is contained in:
2022-04-23 14:15:53 +03:00
parent ae1ac488d8
commit 8c84039e9d

View File

@@ -24,7 +24,7 @@ def result():
def safe(): def safe():
app.logger.info('Initializing safe reboot process') app.logger.info('Initializing safe reboot process')
# Try to ping the router 100 times # Try to ping the router 50 times
for i in range(50): for i in range(50):
if call(['ping', '-c', '1', url], stdout=DEVNULL, stderr=STDOUT) == 0: if call(['ping', '-c', '1', url], stdout=DEVNULL, stderr=STDOUT) == 0:
app.logger.info('Router is online') app.logger.info('Router is online')