Skip to content

Commit

Permalink
Stats
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Oct 27, 2024
1 parent cf91806 commit 1e15e8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions nano/lib/stats_enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ enum class detail
empty,
done,
retry,
prioritized,
pending,

// processing queue
queue,
Expand Down Expand Up @@ -485,10 +487,6 @@ enum class detail
deprioritize,
deprioritize_failed,
sync_dependencies,
frontiers_processed,
frontiers_prioritized,
frontiers_outdated,
frontiers_pending,

request_blocks,
request_account_info,
Expand Down
8 changes: 4 additions & 4 deletions nano/node/bootstrap_ascending/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,10 +975,10 @@ void nano::bootstrap_ascending::service::process_frontiers (std::deque<std::pair
}
}

stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_processed, frontiers.size ());
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_prioritized, result.size ());
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_outdated, outdated);
stats.add (nano::stat::type::bootstrap_ascending, nano::stat::detail::frontiers_pending, pending);
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::processed, frontiers.size ());
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::prioritized, result.size ());
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::outdated, outdated);
stats.add (nano::stat::type::bootstrap_ascending_frontiers, nano::stat::detail::pending, pending);

nano::lock_guard<nano::mutex> guard{ mutex };

Expand Down

0 comments on commit 1e15e8d

Please sign in to comment.