mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix typo
This commit is contained in:
parent
0ac9a68dfd
commit
ce9ad81717
@ -205,9 +205,9 @@ function _get_fastest() {
|
|||||||
done
|
done
|
||||||
fastest="$(echo -e "${speedlist}" | tr -s '\n' | sort -k2n | head -1)"
|
fastest="$(echo -e "${speedlist}" | tr -s '\n' | sort -k2n | head -1)"
|
||||||
URL="$(echo "${fastest}" | awk '{print $1}')"
|
URL="$(echo "${fastest}" | awk '{print $1}')"
|
||||||
SPD="$(echo "${fastest}" | awk '{print $2}')"
|
SPD="$(echo "${fastest}" | awk '{print $2}')" # It is a float type
|
||||||
echo "${URL}"
|
echo "${URL}"
|
||||||
[ ${SPD:-999} -ge 999 ] && return 1 || return 0
|
[ $(printf "%.0f" ${SPD:-999}) -ge 999 ] && return 1 || return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user