Ver código fonte

Adds iperf timeout for bandwith measurements.

master
Lukas Prause 3 anos atrás
pai
commit
985cd1b499
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      measurement_main.py

+ 4
- 0
measurement_main.py Ver arquivo

@@ -805,6 +805,8 @@ class Client:
is_measurement_done = False
iperf_return = 0
while not is_measurement_done or iperf_return != 0:
if iperf_return != 0:
reconnect_modem()
try:
try:
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)
@@ -871,6 +873,8 @@ class Client:
is_measurement_done = False
iperf_return = 0
while not is_measurement_done or iperf_return != 0:
if iperf_return != 0:
reconnect_modem()
try:
try:
iperf_return = subprocess.call(iperf_command, timeout=float(time) + TIMEOUT_OFFSET)

Carregando…
Cancelar
Salvar