aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2019-12-11 11:27:00 +0100
committerLuca <deri@ntop.org>2019-12-11 11:27:00 +0100
commit2c2bb11c9b704c5b13e9b45d93a16fbad6304cb0 (patch)
treeba37df9807e4692ab9109021e9a329e25b9b665c /example/ndpiReader.c
parent1bd63d68a5a34b5e63155cf5d3d6d25491885820 (diff)
Fixed output format
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 4ffce62b8..7f0ebda23 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1105,7 +1105,7 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
return;
}
- if(csv_fp) {
+ if(csv_fp || (verbose > 1)) {
#if 1
fprintf(out, "\t%u", id);
#else
@@ -1133,8 +1133,6 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa
fflush(out);
fprintf(out, "[score: %.4f]", flow->entropy.score);
}
-
-
fprintf(out, "[proto: ");
if(flow->tunnel_type != ndpi_no_tunnel)