diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2024-02-06 18:18:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 18:18:29 +0200 |
commit | 6ad9d86d6c2d1551e3ecdcae107a5e13529e7b7a (patch) | |
tree | f6acd7bab3974fd88eec5febeeafc7e85e702188 | |
parent | a7b0ee58beb76fc76b8c23900091b4283f2046ef (diff) |
fix wrong sizeof (#16950)
* fix wrong sizeof - it is the same size, but for accuracy it should be fixed
* made the direction sticky
-rw-r--r-- | collectors/network-viewer.plugin/network-viewer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collectors/network-viewer.plugin/network-viewer.c b/collectors/network-viewer.plugin/network-viewer.c index cbb88bc0f4..ee2a348677 100644 --- a/collectors/network-viewer.plugin/network-viewer.c +++ b/collectors/network-viewer.plugin/network-viewer.c @@ -190,7 +190,7 @@ static void local_sockets_cb_to_aggregation(LS_STATE *ls __maybe_unused, LOCAL_S case SOCKET_DIRECTION_OUTBOUND: case SOCKET_DIRECTION_LOCAL_OUTBOUND: - memset(&n->local.ip, 0, sizeof(n->remote.ip)); + memset(&n->local.ip, 0, sizeof(n->local.ip)); n->local.port = 0; break; @@ -374,7 +374,7 @@ void network_viewer_function(const char *transaction, char *function __maybe_unu RRDF_FIELD_TYPE_STRING, RRDF_FIELD_VISUAL_VALUE, RRDF_FIELD_TRANSFORM_NONE, 0, NULL, NAN, RRDF_FIELD_SORT_ASCENDING, NULL, RRDF_FIELD_SUMMARY_COUNT, RRDF_FIELD_FILTER_MULTISELECT, - RRDF_FIELD_OPTS_VISIBLE, + RRDF_FIELD_OPTS_VISIBLE|RRDF_FIELD_OPTS_STICKY, NULL); // Protocol |