aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca <deri@ntop.org>2023-09-27 17:05:12 +0200
committerLuca <deri@ntop.org>2023-09-27 17:05:12 +0200
commit77e5daf03e1ee7a8377a5a8906fe2c089c94ecf0 (patch)
tree4a53b889791a634d8572702ce4e78ec0f9286dce /example/reader_util.c
parentef3adb98308f14628e64b918f739e472de00cfcf (diff)
Cleaned up mining datastructure
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 7f8408466..86c45b351 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -1147,9 +1147,11 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
ndpi_snprintf(flow->host_server_name, sizeof(flow->host_server_name), "%s",
flow->ndpi_flow->host_server_name);
- ndpi_snprintf(flow->flow_extra_info, sizeof(flow->flow_extra_info), "%s",
- flow->ndpi_flow->flow_extra_info);
-
+ if(is_ndpi_proto(flow, NDPI_PROTOCOL_MINING)) {
+ ndpi_snprintf(flow->mining.currency, sizeof(flow->mining.currency), "%s",
+ flow->ndpi_flow->protos.mining.currency);
+ }
+
flow->risk = flow->ndpi_flow->risk;
if(is_ndpi_proto(flow, NDPI_PROTOCOL_DHCP)) {