Skip to content

Commit

Permalink
fix high TX rate
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Jun 7, 2024
1 parent 7933d86 commit 672b92b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/bngblaster/src/bbl_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,8 @@ bbl_stream_io_send_iter(io_handle_s *io, uint64_t now)
io_bucket->base += io_bucket->nsec;
if(io_bucket->base < min) {
io_bucket->base = min;
} else if(io_bucket->base > now) {
io_bucket->base = now;
}
}
expired = now - io_bucket->base;
Expand Down Expand Up @@ -2634,6 +2636,7 @@ bbl_stream_json(bbl_stream_s *stream, bool debug)
json_object_set(root, "debug-tx-seq", json_integer(stream->flow_seq));
json_object_set(root, "debug-max-packets", json_integer(stream->max_packets));
json_object_set(root, "debug-tcp-flags", json_integer(stream->tcp_flags));
json_object_set(root, "debug-expired", json_integer(stream->expired));
}
return root;
}
Expand Down

0 comments on commit 672b92b

Please sign in to comment.