Skip to content

Commit

Permalink
Merge pull request #222 from dmitrygx/topic/io_demo/print_fix_int3
Browse files Browse the repository at this point in the history
APPS/IO-DEMO: Fix performance printing if wait_for_responses takes ~='print_interval' seconds
  • Loading branch information
yosefe authored Nov 9, 2021
2 parents a34faa6 + 9c705dc commit 3855b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/apps/iodemo/io_demo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1767,13 +1767,13 @@ class DemoClient : public P2pDemoCommon {
if (is_control_iter(total_iter) &&
((total_iter - total_prev_iter) >= _server_index_lookup.size())) {
// Print performance every <print_interval> seconds
double curr_time = get_time();
if (curr_time >= (prev_time + opts().print_interval)) {
if (get_time() >= (prev_time + opts().print_interval)) {
wait_for_responses(0);
if (_status != OK) {
break;
}

double curr_time = get_time();
report_performance(total_iter - total_prev_iter,
curr_time - prev_time);

Expand Down

0 comments on commit 3855b88

Please sign in to comment.