更新 choose-cn.sh
This commit is contained in:
parent
2e241fbd2c
commit
0366fc2fe5
@ -44,7 +44,7 @@ do
|
||||
# 检查 curl 命令的返回状态
|
||||
if [ $curl_status -eq 0 ]; then
|
||||
# 计算下载速度
|
||||
download_speed=$(echo "scale=2; (10000000*8)/(($elapsed_time)*100000)" | bc)
|
||||
download_speed=$(echo "scale=2; (10000000*8)/(($elapsed_time)*1000000)" | bc)
|
||||
|
||||
# 如果下载速度小于 50Mbps
|
||||
if (( $(echo "$download_speed < 50" | bc -l) )); then
|
||||
|
Loading…
x
Reference in New Issue
Block a user