Skip to content

Commit 7578eba

Browse files
committed
fix(main.go): use minSpeed variable for speed comparison
- replace hardcoded speed threshold with minSpeed variable
1 parent c61948c commit 7578eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func printResults(results []*speedtester.Result) {
9494
speed := float64(result.DownloadSpeed) / (1024 * 1024) // 转换为 MB/s
9595
if speedStr == "0.00B/s" {
9696
color = colorRed
97-
} else if speed >= 10 {
97+
} else if speed >= *minSpeed {
9898
color = colorGreen
9999
}
100100

0 commit comments

Comments
 (0)