From c438b02d3ebec4d54908b5665c47be33cb69c450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Sun, 26 May 2024 11:55:30 +0200 Subject: [PATCH] Stats --- nano/lib/stats_enums.hpp | 2 ++ nano/node/request_aggregator.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nano/lib/stats_enums.hpp b/nano/lib/stats_enums.hpp index a1d0926100..0b39c9f6ad 100644 --- a/nano/lib/stats_enums.hpp +++ b/nano/lib/stats_enums.hpp @@ -44,6 +44,7 @@ enum class type aggregator, requests, request_aggregator, + request_aggregator_vote, filter, telemetry, vote_generator, @@ -323,6 +324,7 @@ enum class detail requests_cannot_vote, requests_unknown, requests_non_final, + requests_final, // request_aggregator request_hashes, diff --git a/nano/node/request_aggregator.cpp b/nano/node/request_aggregator.cpp index 5f36f10ce0..2eeac08a61 100644 --- a/nano/node/request_aggregator.cpp +++ b/nano/node/request_aggregator.cpp @@ -268,15 +268,16 @@ auto nano::request_aggregator::aggregate (nano::secure::transaction const & tran if (generate_final_vote) { to_generate_final.push_back (block); + stats.inc (nano::stat::type::requests, nano::stat::detail::requests_final); } else { - stats.inc (nano::stat::type::requests, nano::stat::detail::requests_non_final, stat::dir::in); + stats.inc (nano::stat::type::requests, nano::stat::detail::requests_non_final); } } else { - stats.inc (nano::stat::type::requests, nano::stat::detail::requests_unknown, stat::dir::in); + stats.inc (nano::stat::type::requests, nano::stat::detail::requests_unknown); } }