Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-07-04 17:15:15 +08:00 committed by GitHub
parent dfc5c3af17
commit c88b1c2f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -91,17 +91,12 @@ TEST_DURATION=30
PARALLEL_STREAMS=3
run_iperf3_test() {
echo -e "${YELLOW}开始 iperf3 测试...${NC}"
echo -e "${GREEN}测试到辅助 VPS 的连接${NC}"
echo "连接到服务端VPS请耐心等待测试"
echo -e "${GREEN}连接到服务端iperf3中。。。${NC}"
if iperf3 -c $AUXILIARY_VPS -p $IPERF_PORT -t $TEST_DURATION -P $PARALLEL_STREAMS; then
echo -e "${GREEN}测试完成${NC}"
else
echo -e "${RED}测试失败${NC}"
fi
echo -e "${YELLOW}iperf3 测试完成${NC}"
else
echo -e "${RED}iperf3 测试失败${NC}"
fi
}
# 统计使用次数