summaryrefslogtreecommitdiff
path: root/examples/c-collectd
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-12-04 13:01:27 +0100
committerToni Uhlig <matzeton@googlemail.com>2023-12-04 13:01:27 +0100
commit53d8a28582c4183ee052d4018334d58153367467 (patch)
treec271004e66aea32258f9be942617ba3d88c09cf7 /examples/c-collectd
parent37f3770e3e1b6659d3658f28d394bd9ccd5dc8a5 (diff)
Replaced ambiguous naming of "JSON string" to more accurate "JSON message".
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/c-collectd')
-rw-r--r--examples/c-collectd/c-collectd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c-collectd/c-collectd.c b/examples/c-collectd/c-collectd.c
index 87a7f6fd1..6bdf59aa3 100644
--- a/examples/c-collectd/c-collectd.c
+++ b/examples/c-collectd/c-collectd.c
@@ -625,7 +625,7 @@ static enum nDPIsrvd_callback_return collectd_json_callback(struct nDPIsrvd_sock
struct flow_user_data * flow_user_data = NULL;
collectd_statistics.json_lines++;
- collectd_statistics.json_bytes += sock->buffer.json_string_length + NETWORK_BUFFER_LENGTH_DIGITS;
+ collectd_statistics.json_bytes += sock->buffer.json_message_length + NETWORK_BUFFER_LENGTH_DIGITS;
struct nDPIsrvd_json_token const * const packet_event_name = TOKEN_GET_SZ(sock, "packet_event_name");
if (packet_event_name != NULL)