From 5cfa97f5b471f9a26d0b2270c5a7081dbbb23039 Mon Sep 17 00:00:00 2001 From: Dreamer Date: Wed, 25 Sep 2024 23:44:00 +0200 Subject: [PATCH] Remove unused processed_directions vectors --- src/metrics/clickhouse.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/metrics/clickhouse.cpp b/src/metrics/clickhouse.cpp index d8c3c918..9ff12ec8 100644 --- a/src/metrics/clickhouse.cpp +++ b/src/metrics/clickhouse.cpp @@ -213,8 +213,6 @@ void increment_clickhouse_per_protocol_counters(PerProtocolMetrics& metrics, con // Populates Clickhouse host counters using speed_element void increment_clickhouse_host_counters(ClickhouseHostMetrics& metrics, const subnet_counter_t& current_speed_element) { - std::vector processed_directions = { INCOMING, OUTGOING }; - metrics.packets_incoming->Append(current_speed_element.total.in_packets); metrics.bits_incoming->Append(current_speed_element.total.in_bytes * 8); metrics.flows_incoming->Append(current_speed_element.in_flows); @@ -496,8 +494,6 @@ template (std::is_same_v)bool push_hosts_traffic_counters_to_clickhouse(clickhouse::Client* clickhouse_metrics_client, abstract_subnet_counters_t& host_counters, const std::string& table_name) { - std::vector processed_directions = { INCOMING, OUTGOING }; - clickhouse::Block block; ClickhouseHostMetrics metrics;