Skip to content
Snippets Groups Projects
Commit 0b851e23 authored by NGUYEN Do Duc Anh's avatar NGUYEN Do Duc Anh
Browse files

fix bug

parent 4822f50b
Branches
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ def generate_and_send_traffic_matrix():
if src_ip != dest_ip:
with open(file_path, "w") as file:
dest_port = listen_port_map[dest_ip]
command = f"-T TCP -a {dest_ip} -rp {dest_port} -O {mean_rate} -o 1400 -t 300000"
command = f"-T TCP -a {dest_ip} -rp {dest_port} -O {mean_rate} -o 1400 -t 30000"
listen_port_map[dest_ip] += 1
file.write(f"{src_ip} {command}\n")
......@@ -72,7 +72,7 @@ def generate_and_send_traffic_matrix():
# print("Output:", stdout.decode())
# print("Error:", stderr.decode())
for ip, receive_rate in trace_receive.items:
for ip, receive_rate in trace_receive.items():
print("IP:", ip, " should received rate:", receive_rate)
print("Finish sending traffic matrix")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment