feat(findBestCDNIP): 增加最优的30条

pull/534/merge
mack-a 2020-07-30 16:55:05 +08:00
parent 0f1f5145b1
commit d46452ace9
1 changed files with 2 additions and 2 deletions

View File

@ -12,9 +12,9 @@ statisticalContent(){
echoContent red "=============================================" echoContent red "============================================="
echoContent yellow '计算中--->' echoContent yellow '计算中--->'
# 排序计算 # 排序计算
echoContent red "排序规则:丢包率>波动>平均延迟" echoContent red "排序规则:丢包率>波动>平均延迟,只展示最优的三十条"
echoContent red "依次展示为:[ ip 丢包率 最小延迟 平均延迟 最大延迟 波动 ]" echoContent red "依次展示为:[ ip 丢包率 最小延迟 平均延迟 最大延迟 波动 ]"
cat /tmp/ping.log|sort -t ' ' -k 2n -k 6n -k 4n cat /tmp/ping.log|sort -t ' ' -k 2n -k 6n -k 4n|head -30
echoContent red "=============================================" echoContent red "============================================="
} }
echoContent(){ echoContent(){