Skip to content

Commit

Permalink
Remove unused processed_directions vectors (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-dead authored Sep 26, 2024
1 parent 4e105bc commit 078047e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/metrics/clickhouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<direction_t> 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);
Expand Down Expand Up @@ -496,8 +494,6 @@ template <typename T, typename C>
(std::is_same_v<C, subnet_counter_t>)bool push_hosts_traffic_counters_to_clickhouse(clickhouse::Client* clickhouse_metrics_client,
abstract_subnet_counters_t<T, C>& host_counters,
const std::string& table_name) {
std::vector<direction_t> processed_directions = { INCOMING, OUTGOING };

clickhouse::Block block;

ClickhouseHostMetrics metrics;
Expand Down

0 comments on commit 078047e

Please sign in to comment.