From 01102bb53066b2459075aa68f7ce25cd91327d74 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 1 Dec 2016 18:36:16 +0900 Subject: [PATCH] update speedtest --- bench.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench.sh b/bench.sh index 1a92314..d5e1830 100644 --- a/bench.sh +++ b/bench.sh @@ -54,14 +54,14 @@ speed_test() { local speedtest=$(wget -4O /dev/null -T300 $1 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}') local ipaddress=$(ping -c1 -n `awk -F'/' '{print $3}' <<< $1` | awk -F'[()]' '{print $2;exit}') local nodeName=$2 - display ${nodeName} ${ipaddress} ${speedtest} + display "${nodeName}" "${ipaddress}" "${speedtest}" } speed_test_v6() { local speedtest=$(wget -6O /dev/null -T300 $1 2>&1 | awk '/\/dev\/null/ {speed=$3 $4} END {gsub(/\(|\)/,"",speed); print speed}') local ipaddress=$(ping6 -c1 -n `awk -F'/' '{print $3}' <<< $1` | awk -F'[()]' '{print $2;exit}') local nodeName=$2 - display ${nodeName} ${ipaddress} ${speedtest} + display "${nodeName}" "${ipaddress}" "${speedtest}" } speed() {