mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2026-07-04 15:48:22 +00:00
Fix: iperf_test latency measurement ignores IPv4/IPv6 (#126)
`iperf_test` only calls `ping -c1 $URL` right now, not passing IPv4 or IPv6 parameters to ping. It thus doesn't differentiate between IPv4 and IPv6 latency at all.
This commit is contained in:
2
yabs.sh
2
yabs.sh
@@ -801,7 +801,7 @@ function iperf_test {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Run a latency test via ping -c1 command -> will return "xx.x ms"
|
# Run a latency test via ping -c1 command -> will return "xx.x ms"
|
||||||
[[ -n $LOCAL_PING ]] && LATENCY_RUN="$(ping -c1 "$URL" 2>/dev/null | grep -o 'time=.*' | sed s/'time='//)"
|
[[ -n $LOCAL_PING ]] && LATENCY_RUN="$(ping $FLAGS -c1 "$URL" 2>/dev/null | grep -o 'time=.*' | sed s/'time='//)"
|
||||||
[[ -z $LATENCY_RUN ]] && LATENCY_RUN="--"
|
[[ -z $LATENCY_RUN ]] && LATENCY_RUN="--"
|
||||||
|
|
||||||
# parse the resulting send and receive speed results
|
# parse the resulting send and receive speed results
|
||||||
|
|||||||
Reference in New Issue
Block a user