Skip to content

Commit

Permalink
Merge pull request #335 from nik-netlox/main
Browse files Browse the repository at this point in the history
Tuned iperf.sh
  • Loading branch information
UltraInstinct14 committed Jun 23, 2023
2 parents 8702887 + 41ecc61 commit 374c31f
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 374c31f

Please sign in to comment.