Initialize duration variables for speed test metrics
This commit is contained in:
parent
1a9174eb6c
commit
df05194b3b
1 changed files with 10 additions and 0 deletions
10
runtest.sh
10
runtest.sh
|
@ -184,6 +184,16 @@ for ((COUNTER = 1; COUNTER <= NUM_TESTS; COUNTER++)); do
|
|||
bssid_and_bitrate=$(iw dev "$INTERFACE" link | awk '/Connected/ {bssid=$3} /tx bitrate/ {tx=$3} /rx bitrate/ {rx=$3} END {print bssid","tx","rx}')
|
||||
|
||||
speed_results=""
|
||||
speedtest_duration=0
|
||||
localtcpup_duration=0
|
||||
localtcpdown_duration=0
|
||||
localudpup_duration=0
|
||||
localudpdown_duration=0
|
||||
remotetcpup_duration=0
|
||||
remotetcpdown_duration=0
|
||||
remoteudpup_duration=0
|
||||
remoteudpdown_duration=0
|
||||
|
||||
for ((retry = 1; retry <= MAX_RETRIES; retry++)); do
|
||||
SECONDS=0
|
||||
log "Speed test attempt $retry"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue