From 2a91703e3761ec4fb8f767fa34a456eb51d8ea2e Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Thu, 21 Mar 2024 21:31:39 -0300 Subject: [PATCH] out_exit: fix check used for time count. Signed-off-by: Phillip Whelan --- plugins/out_exit/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_exit/exit.c b/plugins/out_exit/exit.c index 60279251852..59df850879f 100644 --- a/plugins/out_exit/exit.c +++ b/plugins/out_exit/exit.c @@ -132,7 +132,7 @@ static void cb_exit_flush(struct flb_event_chunk *event_chunk, if (ctx->flush_count == 0 || ctx->record_count == 0 || - (ctx->time_count && flb_time_to_millisec(&run) > (ctx->time_count*1000))) { + (ctx->time_count > 0 && flb_time_to_millisec(&run) > (ctx->time_count*1000))) { flb_engine_exit(config); ctx->is_running = FLB_FALSE; }