timing issue with packet flow measurements fixed

master
Frederik Maaßen 2 years ago
parent ce8f8ea620
commit b472b942c0
  1. 2
      implementation/mininet_controller.py

@ -176,7 +176,7 @@ def read_packet_counter(delay, length, net, device, table, counter, flag, test_p
current_time = round(current_time + delay, 1)
log_output = int(relevant_output) - last_value
last_value = int(relevant_output)
log_file_object.write(f"{current_time} {str(log_output)}\n")
log_file_object.write(f"{current_time - delay} {str(log_output)}\n")
if execution_counter >= executions:
running = False