diff options
author | Luca Deri <deri@ntop.org> | 2021-12-04 10:09:01 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-12-04 10:09:01 +0100 |
commit | fe2822c6a8fcbf9e0a4bb9ee7558cbd0c310e067 (patch) | |
tree | ab0a32b8f38cd5b73d3d688f179e62249c6479b3 /example | |
parent | 6ab1367846bfa7aeba578e363e46a1acccb9c477 (diff) |
Added example for finding similarities in RRDs using nDPI statistical APIs
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index cbcbec881..f4f21f99d 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -266,7 +266,7 @@ u_int check_bin_doh_similarity(struct ndpi_bin *bin, float *similarity) { float lowest_similarity = 9999999999.0f; for(i=0; i<NUM_DOH_BINS; i++) { - *similarity = ndpi_bin_similarity(&doh_ndpi_bins[i], bin, 0); + *similarity = ndpi_bin_similarity(&doh_ndpi_bins[i], bin, 0, 0); if(*similarity <= doh_max_distance) return(1); @@ -2827,7 +2827,7 @@ static void printFlowsStats() { print_bin(out, NULL, &bins[i]); printf("][similarity: %f]", - (similarity = ndpi_bin_similarity(¢roids[j], &bins[i], 0))); + (similarity = ndpi_bin_similarity(¢roids[j], &bins[i], 0, 0))); if(all_flows[i].flow->host_server_name[0] != '\0') fprintf(out, "[%s]", all_flows[i].flow->host_server_name); |