diff --git a/quill/include/quill/detail/backend/BackendWorker.h b/quill/include/quill/detail/backend/BackendWorker.h index 810e0633..40fa2376 100644 --- a/quill/include/quill/detail/backend/BackendWorker.h +++ b/quill/include/quill/detail/backend/BackendWorker.h @@ -671,7 +671,7 @@ void BackendWorker::_main_loop() if (total_events >= _max_transit_events) { // process half transit events - for (size_t i = 0; i < static_cast(_max_transit_events / 2); ++i) + for (size_t i = 0; i < total_events; ++i) { _process_transit_event(cached_thread_contexts); } @@ -742,7 +742,7 @@ void BackendWorker::_exit() if (total_events >= _max_transit_events) { // process half transit events - for (size_t i = 0; i < static_cast(_max_transit_events / 2); ++i) + for (size_t i = 0; i < total_events; ++i) { _process_transit_event(cached_thread_contexts); } @@ -792,4 +792,4 @@ void BackendWorker::_exit() _rdtsc_clock.store(nullptr, std::memory_order_release); delete rdtsc_clock; } -} // namespace quill::detail \ No newline at end of file +} // namespace quill::detail