Improve warning message for iperf3 timeout to include elapsed time
This commit is contained in:
parent
0181766269
commit
dca9f7eebe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue