Skip to content

Commit

Permalink
fix: ensure variables are initialized before use
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Stuewe <[email protected]>
  • Loading branch information
HalosGhost committed Apr 24, 2024
1 parent 45b07e4 commit 376fdf1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/bench/atomizer-cli-watchtower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ auto main(int argc, char** argv) -> int {
uint32_t batch_counter = 0;
uint32_t best_height
= blocking_watchtower_client->request_best_block_height()->height();
std::chrono::nanoseconds total_time;
std::chrono::nanoseconds check_time;
std::chrono::nanoseconds gen_time;
std::chrono::nanoseconds add_time;
std::chrono::nanoseconds send_time;
std::chrono::nanoseconds total_time{};
std::chrono::nanoseconds check_time{};
std::chrono::nanoseconds gen_time{};
std::chrono::nanoseconds add_time{};
std::chrono::nanoseconds send_time{};
uint64_t gen_avg{};
while(running) {
static constexpr auto send_amount = 5;
Expand Down

0 comments on commit 376fdf1

Please sign in to comment.