diff --git a/pagermaid/modules/status.py b/pagermaid/modules/status.py index 98271bd..27f5a45 100644 --- a/pagermaid/modules/status.py +++ b/pagermaid/modules/status.py @@ -106,7 +106,7 @@ async def ping_dc(message: Message): data.append("0") else: result = await execute( - f"ping -c 1 {DCs[dc]} | awk -F '/' " + "'END {print $5}'" + f"ping -c 1 {DCs[dc]} | awk -F 'time=' " + "'/time=/ {print $2}' | awk '{print $1}'" ) try: data.append(str(float(result)))