Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused processed_directions vectors #1021

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading