Skip to content

Commit

Permalink
dlt-qnx-system: prevent unnecessary logging when buffer space is full
Browse files Browse the repository at this point in the history
The log pointing to full buffer space,
was mistakenly logged several times.
Only log it once when the timeout has been reached.

Signed-off-by: Ahmet Findikci <[email protected]>
  • Loading branch information
ahmetfindi committed May 16, 2024
1 parent 75f6c95 commit 9e28c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlt-qnx-system/dlt-qnx-slogger2-adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static void wait_for_buffer_space(const double max_usage_threshold,
dlt_user_log_resend_buffer();

std::this_thread::sleep_for(10ms);
timeout = std::chrono::steady_clock::now() < end_time;
timeout = std::chrono::steady_clock::now() >= end_time;
} while (!timeout);

if (timeout) {
Expand Down

0 comments on commit 9e28c5e

Please sign in to comment.