mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
update IO test average speed
This commit is contained in:
parent
29da548407
commit
ff8139a854
2
bench.sh
2
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user