From e35d6ffd66becc2725b38115322307261dd87f07 Mon Sep 17 00:00:00 2001 From: jiangheng Date: Sat, 2 Nov 2024 19:00:31 +0800 Subject: [PATCH] interrupt: fix timeout events cannot be counted --- src/lstack/core/lstack_interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstack/core/lstack_interrupt.c b/src/lstack/core/lstack_interrupt.c index 26823cd..67b763c 100644 --- a/src/lstack/core/lstack_interrupt.c +++ b/src/lstack/core/lstack_interrupt.c @@ -317,7 +317,7 @@ static inline void intr_block(uint16_t stack_id, uint32_t timeout) } } - if (event_cnt < 0) { + if (event_cnt == 0) { intr_config->stats.timeout_event_cnt++; } } -- 2.33.0