补充 README.md

This commit is contained in:
xiu2 2021-01-26 19:24:31 +08:00
parent 4038a5b0aa
commit ec650d3084
2 changed files with 4 additions and 3 deletions

View File

@ -67,6 +67,8 @@ IP 地址, 已发送, 已接收, 丢包率, 平均延迟, 下载速度 (MB/s)
直接运行使用的是默认参数,如果想要测速结果更全面、更符合自己的要求,可以自定义参数。
> 想要**自动更新 Cloudflare 域名解析记录**?请看这个 [Issues](https://github.com/XIU2/CloudflareSpeedTest/issues/40) 获取手动教程或 Windows/Linux 脚本!
``` cmd
C:\>CloudflareST.exe -h

View File

@ -166,11 +166,10 @@ func main() {
var downloadTestCount_2 int // 临时的下载测速次数
if timeLimit == 9999 && speedLimit == 0 {
downloadTestCount_2 = downloadTestCount // 如果没有指定条件,则临时变量为下载测速次数
fmt.Println("开始下载测速:")
} else if timeLimit > 0 || speedLimit >= 0 {
downloadTestCount_2 = len(data) // 如果指定了任意一个条件,则临时变量改为总数量
fmt.Println("开始下载测速(延迟时间上限:" + strconv.Itoa(timeLimit) + " ms下载速度下限" + strconv.Itoa(speedLimit) + " MB/s")
}
fmt.Println("开始下载测速(延迟时间上限:" + strconv.Itoa(timeLimit) + " ms下载速度下限" + strconv.Itoa(speedLimit) + " MB/s")
bar = pb.Simple.Start(downloadTestCount)
for i := 0; i < downloadTestCount_2; i++ {
_, speed := DownloadSpeedHandler(data[i].ip)
@ -191,7 +190,7 @@ func main() {
}
}
if len(data_2) > 0 { // 如果该数有内容,说明进行过指定条件的下载测速
if len(data_2) > 0 { // 如果该数有内容,说明进行过指定条件的下载测速
sort.Sort(CloudflareIPDataSetD(data_2)) // 排序
if outputFile != "" {
ExportCsv(outputFile, data_2) // 输出结果到文件(指定延迟时间或下载速度的)