Update comments

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-05-01 11:30:04 +09:00
parent 5e7ad09ff2
commit dd547d3935
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -32,7 +32,7 @@ next() {
}
speed_test_v4() {
local output=$(wget -4O /dev/null -T300 $1 2>&1)
local output=$(LANG=C wget -4O /dev/null -T300 $1 2>&1)
local speedtest=$(printf '%s' "$output" | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}')
local ipaddress=$(printf '%s' "$output" | awk -F'|' '/Connecting to .*\|([^\|]+)\|/ {print $2}')
local nodeName=$2
@ -40,7 +40,7 @@ speed_test_v4() {
}
speed_test_v6() {
local output=$(wget -6O /dev/null -T300 $1 2>&1)
local output=$(LANG=C wget -6O /dev/null -T300 $1 2>&1)
local speedtest=$(printf '%s' "$output" | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}')
local ipaddress=$(printf '%s' "$output" | awk -F'|' '/Connecting to .*\|([^\|]+)\|/ {print $2}')
local nodeName=$2