From 31276b0172c547781d78b795a8c0c0e72307e54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Wed, 17 May 2023 02:09:01 +0000 Subject: [PATCH] Update endip1.sh --- point/endip1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/point/endip1.sh b/point/endip1.sh index 45fe93b..8825808 100644 --- a/point/endip1.sh +++ b/point/endip1.sh @@ -159,7 +159,7 @@ ulimit -n 102400 chmod +x warpendpoint ./warpendpoint clear -cat result.csv | awk -F, '$3!="timeout ms" {print} ' | sort -t, -nk2 -nk3 | uniq | head -11 | awk -F, '{print "端点 "$1" 丢包率 "$2" 平均延迟 "$3}' +cat result.csv | awk -F, '$3!="timeout ms" {print} ' | sort -t, -nk2 -nk3 | uniq | awk -F, '{if($1~/^[0-9]/ && ipv4_count<5) {print; ipv4_count++} else if($1~/^\[/ && ipv6_count<5) {print; ipv6_count++}}' | awk -F, '{print "端点 "$1" 丢包率 "$2" 平均延迟 "$3}' rm -rf ip.txt warpendpoint exit }