Skip to content

Commit

Permalink
chore: moving back to only one ping packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeri0p committed May 29, 2022
1 parent d5c545b commit 3b6dca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3b6dca7

Please sign in to comment.