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

round the packet rate

parent 4e0a2062
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ def generate_and_send_traffic_matrix():
elif not A:
mean_rate = 1000
else:
mean_rate = (f * A[i] * P_values[j]) / sum(P_values) + ((1 - f) * A[j] * P_values[i]) / sum(P_values)
mean_rate = round((f * A[i] * P_values[j]) / sum(P_values) + ((1 - f) * A[j] * P_values[i]) / sum(P_values))
traffic_matrix[point_ip_send][point_ip_recv] = mean_rate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment