|
@ -47,7 +47,7 @@ while read name country admin url ; do |
|
|
|
|
|
|
|
|
# test |
|
|
# test |
|
|
echo -n "Testing <$name> ($country) ..." 1>&2 |
|
|
echo -n "Testing <$name> ($country) ..." 1>&2 |
|
|
speed=$(curl -s -m 20 "$url/DOWNTEST" -w "%{http_code} %{speed_download}" -o /dev/null | |
|
|
|
|
|
|
|
|
speed=$(curl -Ls -m 20 "$url/DOWNTEST" -w "%{http_code} %{speed_download}" -o /dev/null | |
|
|
grep '^200 ' | cut -d' ' -f2- | sed -e 's:,:.:' -e 's:[\.,]...$::') |
|
|
grep '^200 ' | cut -d' ' -f2- | sed -e 's:,:.:' -e 's:[\.,]...$::') |
|
|
# compare |
|
|
# compare |
|
|
if [ "${speed:-0}" = "0" ]; then |
|
|
if [ "${speed:-0}" = "0" ]; then |
|
|