aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/reader_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index a3299f48b..5c2a45914 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1641,7 +1641,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
flow->has_human_readeable_strings = 0;
}
} else { // flow is NULL
- workflow->stats.total_discarded_bytes++;
+ workflow->stats.total_discarded_bytes += header->len;
return(nproto);
}