diff options
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 4f1767846..54d5abd4b 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -2503,17 +2503,17 @@ static void printFlowsStats() { printf("]\n"); } - printf("\t%-10s\t%s:%u <-> %s:%u\t[", - // cluster_ids[i], + printf("\t%u\t%-10s\t%s:%u <-> %s:%u\t[", + i, ndpi_protocol2name(ndpi_thread_info[0].workflow->ndpi_struct, all_flows[i].flow->detected_protocol, buf, sizeof(buf)), all_flows[i].flow->src_name, ntohs(all_flows[i].flow->src_port), - all_flows[i].flow->src_name, + all_flows[i].flow->dst_name, ntohs(all_flows[i].flow->dst_port)); print_bin(out, NULL, &bins[i]); - printf("][score: %f]", ndpi_bin_similarity(¢roids[j], &bins[i], 0)); + printf("][similarity: %f]", ndpi_bin_similarity(¢roids[j], &bins[i], 0)); if(all_flows[i].flow->ssh_tls.client_requested_server_name[0] != '\0') fprintf(out, "[%s]", all_flows[i].flow->ssh_tls.client_requested_server_name); |