From 2d0fa13e18fa9b1a21c820d54a8a524b4ddd3f5f Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Sat, 11 Nov 2023 17:56:50 +0100 Subject: [PATCH] Timer: Add LOG_DELAY_EXPIRE timer type --- src/Timer.cc | 1 + src/Timer.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Timer.cc b/src/Timer.cc index be3c360afa..ef2763071a 100644 --- a/src/Timer.cc +++ b/src/Timer.cc @@ -49,6 +49,7 @@ const char* TimerNames[] = { "TimerMgrExpireTimer", "ThreadHeartbeat", "UnknownProtocolExpire", + "LogDelayExpire", }; const char* timer_type_to_string(TimerType type) { return TimerNames[type]; } diff --git a/src/Timer.h b/src/Timer.h index f6225f80f8..ff535f64e1 100644 --- a/src/Timer.h +++ b/src/Timer.h @@ -49,8 +49,9 @@ enum TimerType : uint8_t { TIMER_TIMERMGR_EXPIRE, TIMER_THREAD_HEARTBEAT, TIMER_UNKNOWN_PROTOCOL_EXPIRE, + TIMER_LOG_DELAY_EXPIRE, }; -constexpr int NUM_TIMER_TYPES = int(TIMER_UNKNOWN_PROTOCOL_EXPIRE) + 1; +constexpr int NUM_TIMER_TYPES = int(TIMER_LOG_DELAY_EXPIRE) + 1; extern const char* timer_type_to_string(TimerType type);