cleanup(userspace/falco): adjust outputs_queue_num_drops counter for recovery 'empty'

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
This commit is contained in:
Melissa Kilby 2023-09-05 21:06:03 +00:00 committed by poiana
parent dad2762ed6
commit 73f15e6c5b

View File

@ -292,8 +292,8 @@ inline void falco_outputs::push(const ctrl_msg& cmsg)
falco_logger::log(LOG_ERR, "Fatal error: Output queue out of memory. Exiting ...");
exit(EXIT_FAILURE);
case falco_common::RECOVERY_EMPTY:
m_outputs_queue_num_drops += m_queue.size();
falco_logger::log(LOG_ERR, "Output queue out of memory. Dropping events in queue due to emptying the queue and continue on ...");
m_outputs_queue_num_drops += m_queue.size() + 1;
falco_logger::log(LOG_ERR, "Output queue out of memory. Drop event plus events in queue due to emptying the queue; continue on ...");
m_queue.empty();
break;
case falco_common::RECOVERY_CONTINUE: