Skip to content

Commit

Permalink
out_exit: fix check used for time count.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Mar 22, 2024
1 parent c654f08 commit 2a91703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_exit/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2a91703

Please sign in to comment.