Skip to content

Commit 06033a6

Browse files
pwhelanedsiper
authored andcommitted
out_exit: fix check used for time count.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent 34f5d78 commit 06033a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_exit/exit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void cb_exit_flush(struct flb_event_chunk *event_chunk,
132132

133133
if (ctx->flush_count == 0 ||
134134
ctx->record_count == 0 ||
135-
(ctx->time_count && flb_time_to_millisec(&run) > (ctx->time_count*1000))) {
135+
(ctx->time_count > 0 && flb_time_to_millisec(&run) > (ctx->time_count*1000))) {
136136
flb_engine_exit(config);
137137
ctx->is_running = FLB_FALSE;
138138
}

0 commit comments

Comments
 (0)