mirror of
https://github.com/RROrg/rr.git
synced 2025-08-27 23:16:59 +08:00
Compare commits
3 Commits
906311665b
...
29226d0e33
Author | SHA1 | Date | |
---|---|---|---|
|
29226d0e33 | ||
|
b63ddabe95 | ||
|
6c76070b38 |
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
|
|
||||||
RR_VERSION="25.4.0"
|
RR_VERSION="25.4.1"
|
||||||
RR_RELEASE=""
|
RR_RELEASE=""
|
||||||
RR_TITLE="RR v${RR_VERSION}"
|
RR_TITLE="RR v${RR_VERSION}"
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ function _get_fastest() {
|
|||||||
done
|
done
|
||||||
else
|
else
|
||||||
for I in "$@"; do
|
for I in "$@"; do
|
||||||
speed=$(curl -skL -w '%{time_total}' "${I}" -o /dev/null)
|
speed=$(curl -skL -m 10 --connect-timeout 10 -w '%{time_total}' "${I}" -o /dev/null)
|
||||||
speed=$(awk "BEGIN {print (${speed:-0.999} * 1000)}")
|
speed=$(awk "BEGIN {print (${speed:-0.999} * 1000)}")
|
||||||
speedlist+="${I} ${speed:-999}\n" # Assign default value 999 if speed is empty
|
speedlist+="${I} ${speed:-999}\n" # Assign default value 999 if speed is empty
|
||||||
done
|
done
|
||||||
|
@ -1 +1 @@
|
|||||||
25.4.0
|
25.4.1
|
||||||
|
2
guide.md
2
guide.md
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
# API
|
# API
|
||||||
# 获取系统信息
|
# 获取系统信息
|
||||||
synowebapi --exec api=SYNO.Core.System method=info
|
synowebapi --exec api=SYNO.Core.System method=info version=1
|
||||||
# 获取设备信息
|
# 获取设备信息
|
||||||
synowebapi --exec api=SYNO.Core.System.Utilization method=get version=1
|
synowebapi --exec api=SYNO.Core.System.Utilization method=get version=1
|
||||||
# 关闭 自动 https 重定向
|
# 关闭 自动 https 重定向
|
||||||
|
Loading…
x
Reference in New Issue
Block a user