sleeptime const

This commit is contained in:
Christoph J. Scherr 2023-05-22 15:08:38 +02:00
parent ea511a6d67
commit 32d9b4d658
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ from time import sleep
TIMEOUT: float = 1
TESTDOMAINS: list[str] = ["cscherr.de", "debian.org", "cloudflare.com"]
SLEEPTIME: int = 600 # 10 minutes
def check_net() -> bool:
statuses: list[bool] = []
@ -33,7 +34,7 @@ def monitor():
b = check_net()
if b: print(":SUCCESS:")
else: print(":FAILURE:")
sleep(4)
sleep(SLEEPTIME)
except Exception as e:
print(e)