File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -446,15 +446,21 @@ class ProgramDmaBench: public Program
446446 }
447447 }
448448
449- // Status display updates
450- // Wait until the DMA has really started before printing our table to avoid messy output
451- if (! mOptions . noDisplay && mPushCount . load (std::memory_order_relaxed) != 0 ) {
452- if (!mRunTimeStarted ) { // Start counting time when the first page arrives
449+ if ( mPushCount . load (std::memory_order_relaxed) != 0 ) {
450+
451+ // Start our run timer when DMA starts
452+ if (!mRunTimeStarted ) {
453453 mRunTime .start = std::chrono::steady_clock::now ();
454454 mRunTimeStarted = true ;
455455 }
456- updateStatusDisplay ();
456+
457+ // Status display updates
458+ // Wait until the DMA has really started before printing our table to avoid messy output
459+ if (!mOptions .noDisplay ) {
460+ updateStatusDisplay ();
461+ }
457462 }
463+
458464 next += LOW_PRIORITY_INTERVAL;
459465 std::this_thread::sleep_until (next);
460466 }
You can’t perform that action at this time.
0 commit comments