diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-04-15 18:04:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 18:04:26 +0200 |
commit | 9f2dabbda469ca3853f3bb7191e74b3f4d47b48c (patch) | |
tree | 63d49591ff996e2664769cb11a315f4dc5820592 | |
parent | afdae85b30add25b93df65f1cade1d6c15f855f8 (diff) | |
parent | 32ab88a26e53e96131d5351736adbdb3a7bf1c40 (diff) |
Merge pull request #873 from a-czyrny/a-czyrny-ndpireader-csv-patch
Fix for missing line breaks in CSV file
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 91eca9bd2..d64918b85 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1146,10 +1146,11 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa if(enable_joy_stats) { /* Print entropy values for monitored flows. */ flowGetBDMeanandVariance(flow); - if(csv_fp) fprintf(csv_fp, "\n"); fflush(out); fprintf(out, "[score: %.4f]", flow->entropy.score); } + + if(csv_fp) fprintf(csv_fp, "\n"); fprintf(out, "[proto: "); if(flow->tunnel_type != ndpi_no_tunnel) |