@@ -40,7 +40,7 @@ https://github.com/XIU2/CloudflareSpeedTest
4040 -tl 200
4141 平均延迟上限;只输出低于指定平均延迟的 IP,可与其他上限/下限搭配;(默认 9999 ms)
4242 -tll 40
43- 平均延迟下限;只输出高于指定平均延迟的 IP,可与其他上限/下限搭配, 过滤被假蔷的 IP;(默认 0 ms)
43+ 平均延迟下限;只输出高于指定平均延迟的 IP,可与其他上限/下限搭配、 过滤被假蔷的 IP;(默认 0 ms)
4444 -sl 5
4545 下载速度下限;只输出高于指定下载速度的 IP,凑够指定数量 [-dn] 才会停止测速;(默认 0.00 MB/s)
4646 -p 10
@@ -81,7 +81,7 @@ https://github.com/XIU2/CloudflareSpeedTest
8181 flag .Parse ()
8282
8383 if task .MinSpeed > 0 && time .Duration (maxDelay )* time .Millisecond == utils .InputMaxDelay {
84- fmt .Println ("[警告] ' -sl' 参数建议和 ' -tl' 参数一起使用 " )
84+ fmt .Println ("[小提示] 在使用 [ -sl] 参数时,建议搭配 [ -tl] 参数,以避免因凑不够 [-dn] 数量而一直测速... " )
8585 }
8686 utils .InputMaxDelay = time .Duration (maxDelay ) * time .Millisecond
8787 utils .InputMinDelay = time .Duration (minDelay ) * time .Millisecond
@@ -92,7 +92,7 @@ https://github.com/XIU2/CloudflareSpeedTest
9292 fmt .Println ("检查版本更新中..." )
9393 checkUpdate ()
9494 if versionNew != "" {
95- fmt .Println ( " 发现新版本 [" + versionNew + " ]!请前往 [https://github.com/XIU2/CloudflareSpeedTest] 更新!" )
95+ fmt .Printf ( "*** 发现新版本 [%s ]!请前往 [https://github.com/XIU2/CloudflareSpeedTest] 更新! ***" , versionNew )
9696 } else {
9797 fmt .Println ("当前为最新版本 [" + version + "]!" )
9898 }
@@ -103,7 +103,7 @@ https://github.com/XIU2/CloudflareSpeedTest
103103func main () {
104104 go checkUpdate () // 检查版本更新
105105
106- fmt .Printf ("# XIU2/CloudflareSpeedTest %s \n " , version )
106+ fmt .Printf ("# XIU2/CloudflareSpeedTest %s \n \n " , version )
107107
108108 // 开始延迟测速
109109 pingData := task .NewPing ().Run ().FilterDelay ()
@@ -123,7 +123,7 @@ func endPrint() {
123123 return
124124 }
125125 if runtime .GOOS == "windows" { // 如果是 Windows 系统,则需要按下 回车键 或 Ctrl+C 退出(避免通过双击运行时,测速完毕后直接关闭)
126- fmt .Println ("\n 按下 回车键 或 Ctrl+C 退出。" )
126+ fmt .Printf ("\n 按下 回车键 或 Ctrl+C 退出。" )
127127 var pause int
128128 fmt .Scanln (& pause )
129129 }
0 commit comments