From a52a4c81468d55cdd3636af29d4a1fcffc5df9e0 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 18 Sep 2019 11:32:08 +0200 Subject: [PATCH] Fix delivered --- src/algo_thunder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/algo_thunder.c b/src/algo_thunder.c index 2443d74..7d1305c 100644 --- a/src/algo_thunder.c +++ b/src/algo_thunder.c @@ -415,8 +415,10 @@ void adapt(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, struct buff delivered++; } - printf("[algo_thunder] Delivered %ld packets (now id=%d)\n", delivered, thunderc->recv_id); + if (delivered > 4) { + dump_buffer_packet (bp); + } mv_buffer_rtof (&app_ctx->br, fdinfo); if (ctx->verbose > 1) fprintf(stderr, " [algo_thunder] Adapt done\n");