mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-11-13 03:25:21 +00:00
Update nodeloc_vps_autotest_speed.sh
This commit is contained in:
parent
4944abcb51
commit
da5c0c5d4e
@ -110,7 +110,7 @@ run_and_capture() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# 去除三网测速板块板块ANSI转义码并截取
|
# 去除三网测速板块板块ANSI转义码并截取
|
||||||
process_speedtest_output() {
|
speedtest_process_output() {
|
||||||
local input="$1"
|
local input="$1"
|
||||||
|
|
||||||
# 去除 ANSI 转义码并提取所需的测试结果
|
# 去除 ANSI 转义码并提取所需的测试结果
|
||||||
@ -122,11 +122,6 @@ process_speedtest_output() {
|
|||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
speedtest_process_output() {
|
|
||||||
echo "Debug: Calling speedtest process" >&2
|
|
||||||
process_speedtest_output "$1" "多功能 自更新 测速脚本"
|
|
||||||
}
|
|
||||||
|
|
||||||
# 运行所有测试
|
# 运行所有测试
|
||||||
run_all_tests() {
|
run_all_tests() {
|
||||||
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
|
echo -e "${RED}开始测试,测试时间较长,请耐心等待...${NC}"
|
||||||
@ -146,8 +141,8 @@ run_all_tests() {
|
|||||||
format_results() {
|
format_results() {
|
||||||
|
|
||||||
# 处理三网测速结果
|
# 处理三网测速结果
|
||||||
local processed_speedtest_multi_result=$(process_speedtest_output "$speedtest_multi_result")
|
local processed_speedtest_multi_result=$(speedtest_process_output "$speedtest_multi_result")
|
||||||
# local processed_speedtest_single_result=$(process_speedtest_output "$speedtest_single_result")
|
local processed_speedtest_single_result=$(speedtest_process_output "$speedtest_single_result")
|
||||||
|
|
||||||
result="[tabs]
|
result="[tabs]
|
||||||
[tab=\"多线程测速\"]
|
[tab=\"多线程测速\"]
|
||||||
@ -157,7 +152,7 @@ $processed_speedtest_multi_result
|
|||||||
[/tab]
|
[/tab]
|
||||||
[tab=\"单线程测速\"]
|
[tab=\"单线程测速\"]
|
||||||
\`\`\`
|
\`\`\`
|
||||||
|
$processed_speedtest_single_result
|
||||||
\`\`\`
|
\`\`\`
|
||||||
[/tab]
|
[/tab]
|
||||||
[/tabs]"
|
[/tabs]"
|
||||||
|
Loading…
Reference in New Issue
Block a user