Improve warning message for iperf3 timeout to include elapsed time

This commit is contained in:
Yaro Kasear 2025-05-05 11:27:28 -05:00
parent 0181766269
commit dca9f7eebe

View file

@ -111,7 +111,7 @@ run_iperf() {
log "Running iperf3 $mode $direction to $target..."
SECONDS=0
if ! timeout "${timeout_duration}s" iperf3 "${args[@]}" >"$tmp_json" 2>"$tmp_err"; then
warn "iperf3 $mode $direction to $target failed or timed out"
warn "iperf3 $mode $direction to $target failed or timed out after $SECONDS"
echo "0"
return
fi