From ff8139a854d7b5d2d4a8466d18f46963634dc26b Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 25 Nov 2016 16:24:37 +0900 Subject: [PATCH] update IO test average speed --- bench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench.sh b/bench.sh index 7d6f29d..b345ca0 100644 --- a/bench.sh +++ b/bench.sh @@ -142,7 +142,7 @@ ioraw2=$( echo $io2 | awk 'NR==1 {print $1}' ) ioraw3=$( echo $io3 | awk 'NR==1 {print $1}' ) [ "`echo $io3 | awk 'NR==1 {print $2}'`" == "GB/s" ] && ioraw3=$( awk 'BEGIN{print '$ioraw3' * 1024}' ) ioall=$( awk 'BEGIN{print '$ioraw1' + '$ioraw2' + '$ioraw3'}' ) -ioavg=$( awk 'BEGIN{print '$ioall'/3}' ) +ioavg=$( awk 'BEGIN{printf "%.1f", '$ioall' / 3}' ) echo "Average I/O speed : $ioavg MB/s" next echo -e "Node Name\t\t\tIPv4 address\t\tDownload Speed"