Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-06-28 13:59:07 +08:00 committed by GitHub
parent c7b70a3217
commit 2ec38ac32e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ speedtest_multi_process_output() {
# Step 3: 截取所需的测试结果 # Step 3: 截取所需的测试结果
local speedtest_multi_process_output_result local speedtest_multi_process_output_result
speedtest_multi_process_output_result=$(echo "$no_progress" | awk '/大陆三网+教育网 IPv4 多线程测速/{f=1} f; /北京时间/{f=0}') speedtest_multi_process_output_result=$(echo "$no_progress" | awk '/大陆三网\+教育网 IPv4 多线程测速/{f=1} f; /北京时间/{f=0}')
echo "$speedtest_multi_process_output_result" echo "$speedtest_multi_process_output_result"
} }
@ -204,7 +204,7 @@ speedtest_single_process_output() {
# Step 3: 截取所需的测试结果 # Step 3: 截取所需的测试结果
local speedtest_single_process_output_result local speedtest_single_process_output_result
speedtest_single_process_output_result=$(echo "$no_progress" | awk '/大陆三网+教育网 IPv4 单线程测速/{f=1} f; /北京时间/{f=0}') speedtest_single_process_output_result=$(echo "$no_progress" | awk '/大陆三网\+教育网 IPv4 单线程测速/{f=1} f; /北京时间/{f=0}')
echo "$speedtest_single_process_output_result" echo "$speedtest_single_process_output_result"
} }