Commit 33ff1e85 authored by thomas alfroy's avatar thomas alfroy
Browse files

fix bug on number of packets

parent 8bdf973d
......@@ -182,9 +182,11 @@ while con:
if s == sock_sender:
data, addr = sock_sender.recvfrom(64)
nb_packets += 1
nb_packets_per_sec += 1
if nb_packets_per_sec > MAX_PACKETS:
if random.random() <= 0.7:
nb_packets += 1
if ecn != 0.0 :
if not tagged:
data_tmp = bytearray(data)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment