some small adjustments
This commit is contained in:
@@ -19,9 +19,7 @@ iperf3 -i $PINTERVAL -R -t $PTIME -f k -c $PERFHOST
|
||||
- `-M` MByte/s
|
||||
|
||||
|
||||
There exists a [list of public iperf servers](https://iperf.fr/iperf-servers.php).
|
||||
|
||||
|
||||
There exists a [list of public iperf servers](https://iperf.fr/iperf-servers.php) but though it seemed quite recent as of today, none of the servers I tried did actually work.
|
||||
|
||||
## stdbuf
|
||||
|
||||
|
||||
6
perfi.sh
6
perfi.sh
@@ -1,8 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
#function perfi()
|
||||
#{
|
||||
|
||||
##
|
||||
## usage: perfi HOST DURATION INTERVAL
|
||||
##
|
||||
@@ -10,7 +7,7 @@
|
||||
##
|
||||
|
||||
## hardcode stuff here:
|
||||
PERFHOST=${1:-"iperf.it-north.net"} # default host
|
||||
PERFHOST=${1:-"your-iperf3-server.example.com"} # default host
|
||||
PTIME=${2:-"20"} # 20 seconds default
|
||||
PINTERVAL=${3:-"0.5"} # 0.5 seconds interval
|
||||
|
||||
@@ -18,4 +15,3 @@ echo "Using $PERFHOST with test duration $PTIME and interval $PINTERVAL"
|
||||
|
||||
stdbuf -o0 iperf3 -i $PINTERVAL -R -t $PTIME -f k -c $PERFHOST | stdbuf -o0 awk '/sec/&&!/receiver/&&!/sender/ {print $7}' | stdbuf -o0 feedgnuplot --lines --stream $PINTERVAL --ylabel 'Kbit/s' --xlabel "$PINTERVAL seconds"
|
||||
|
||||
#}
|
||||
|
||||
Reference in New Issue
Block a user