From 3b6dca745d382517908b1390f5223ef0ac10109f Mon Sep 17 00:00:00 2001 From: Valeri0p <24795760+Valeri0p@users.noreply.github.com> Date: Sun, 29 May 2022 20:40:22 +0200 Subject: [PATCH] chore: moving back to only one ping packet --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index d02f31b..319a8ec 100644 --- a/src/main.py +++ b/src/main.py @@ -22,7 +22,7 @@ async def check_ok(url: str) -> bool: def check_ping(host: str) -> bool: param = '-n' if platform.system().lower() == 'windows' else '-c' - command = ['ping', param, '5', host] + command = ['ping', param, '1', host] return subprocess.call(command) == 0