Skip to content

Commit

Permalink
In msg_gen, reset latency histogram after every printout
Browse files Browse the repository at this point in the history
  • Loading branch information
ankalia committed Dec 14, 2023
1 parent 9df7fee commit 59b6cb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/msg_gen/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ void ReportStats(ThreadCtx *thread_ctx) {
<< "). " << latency_stats_ss.str() << drops_stats_ss.str()
<< std::endl;

hdr_reset(thread_ctx->latency_hist);
thread_ctx->stats.last_measure_time = now;
thread_ctx->stats.prev = thread_ctx->stats.current;
}
Expand Down

0 comments on commit 59b6cb0

Please sign in to comment.