From 2dae9bd51de6f5be7d60a815d82f9fac2a5aa4c2 Mon Sep 17 00:00:00 2001 From: hans362 Date: Mon, 6 Feb 2023 16:54:28 +0800 Subject: [PATCH] :sparkles: Send 20 packets to detect packet loss --- agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent.py b/agent.py index 1a57371..68a475f 100644 --- a/agent.py +++ b/agent.py @@ -38,7 +38,7 @@ def RegisterRecord(apiEndpoint, secret, agentId, nodeId, latency, loss): print(e) -def PingNode(hostname, count=4, unit='ms'): +def PingNode(hostname, count=20, unit='ms'): sum = 0 times = count for i in range(count): @@ -59,7 +59,7 @@ parser.add_argument('-a', '--apiEndpoint', help='API Endpoint URL. eg. https://pinging.vercel.app/api', required=True) parser.add_argument( '-s', '--secret', help='Agent Secret. eg. 9cWxVbX35UL2Dhj4', required=True) -parser.add_argument('-n', '--name', help='Agent Friendly Name', required=True) +parser.add_argument('-n', '--name', help='Agent Friendly Name. eg. 0vv0', required=True) args = parser.parse_args() # Register agent