Skip to content

Commit

Permalink
Update iperf.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-netlox committed Jun 23, 2023
1 parent 8702887 commit 41ecc61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cicd/tcpsctpperf/iperf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ count=$1
time=$2

iperf -c 20.20.20.1 -t $time -p 12865 -P $count > iperf.log &
sleep $((time + 2))
sleep $((time + 20))
res=$(grep SUM iperf.log | tail -1| xargs | cut -d ' ' -f 6)
unit=$(grep SUM iperf.log | tail -1| xargs | cut -d ' ' -f 7)
echo -e "TCP throughput \t\t: $res $unit"
Expand Down

0 comments on commit 41ecc61

Please sign in to comment.