From 403830f9ad715f45589f8bb5d0dc5cc8c0df7684 Mon Sep 17 00:00:00 2001 From: sebastian Date: Mon, 12 May 2025 19:21:16 +0200 Subject: [PATCH] some small adjustments --- README.md | 4 +--- perfi.sh | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e02d9ba..c39829d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/perfi.sh b/perfi.sh index a044831..3378c9a 100755 --- a/perfi.sh +++ b/perfi.sh @@ -1,7 +1,4 @@ #!/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" -#}