Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-07-31 12:48:38 +08:00 committed by GitHub
parent 1a753f480c
commit 45ee063a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,12 +259,12 @@ detect_region() {
} }
# 服务器 VPS 信息 # 服务器 VPS 信息
AUXILIARY_VPS="205.185.119.208" AUXILIARY_VPS="107.189.11.25"
IPERF_PORT=5201 IPERF_PORT=5201
TEST_DURATION=30 TEST_DURATION=30
run_iperf3_test() { run_iperf3_test() {
echo -e "${GREEN}服务端VPS位于美国拉斯维加斯${NC}" echo -e "${GREEN}服务端VPS位于卢森堡${NC}"
echo -e "${GREEN}连接到服务端进行iperf3测试。。。${NC}" echo -e "${GREEN}连接到服务端进行iperf3测试。。。${NC}"
timeout ${TEST_DURATION}s iperf3 -c $AUXILIARY_VPS -p $IPERF_PORT -t $TEST_DURATION timeout ${TEST_DURATION}s iperf3 -c $AUXILIARY_VPS -p $IPERF_PORT -t $TEST_DURATION
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then