mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-27 08:45:20 +00:00
Update Nlbench.sh
This commit is contained in:
parent
2da6546e4d
commit
fb3b27a67a
@ -452,7 +452,8 @@ generate_markdown_output() {
|
||||
local file_suffixes=("yabs" "fusion" "ip_quality" "streaming" "response" "multi_thread" "single_thread" "route")
|
||||
local empty_tabs=("去程路由" "Ping.pe" "哪吒 ICMP" "其他")
|
||||
|
||||
echo "[tabs]" > "$temp_output_file"
|
||||
# 修改这里,添加 UTF-8 编码设置
|
||||
echo "[tabs]" | iconv -f UTF-8 -t UTF-8//IGNORE > "$temp_output_file"
|
||||
|
||||
for i in "${!sections[@]}"; do
|
||||
section="${sections[$i]}"
|
||||
@ -474,10 +475,6 @@ generate_markdown_output() {
|
||||
|
||||
echo "[/tabs]" >> "$temp_output_file"
|
||||
|
||||
# 确保文件以 UTF-8 编码保存
|
||||
iconv -f UTF-8 -t UTF-8 "$temp_output_file" -o "${temp_output_file}.utf8"
|
||||
mv "${temp_output_file}.utf8" "$temp_output_file"
|
||||
|
||||
local timestamp=$(date +"%Y%m%d%H%M%S")
|
||||
local random_chars=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 6 | head -n 1)
|
||||
local filename="${timestamp}-${random_chars}.txt"
|
||||
|
Loading…
Reference in New Issue
Block a user