Skip to content

Commit 89cc40d

Browse files
committed
Report packets (instead of batch) less frequently
1 parent 97b86b4 commit 89cc40d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

framework/src/packet_batch/send_batch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ impl<V> Act for SendBatch<V>
7979
.and_then(|x| {
8080
self.sent += x as u64;
8181
if x > 0 {
82-
self.batch += 1;
83-
if self.batch > 100000 {
82+
self.batch += x as u64;
83+
if self.batch > 3_200_000 {
8484
let time = time::precise_time_ns();
8585
println!("tx {} {} {}", self.port, self.batch, time);
8686
self.batch = 0;

0 commit comments

Comments
 (0)