Skip to content

Commit fc28991

Browse files
committed
in_tail: force 'double' type for time check
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 66b09af commit fc28991

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/in_tail/tail_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ static int process_content(struct flb_tail_file *file, off_t *bytes)
264264
ret = flb_parser_do(ctx->parser, line, line_len,
265265
&out_buf, &out_size, &out_time);
266266
if (ret >= 0) {
267-
if (flb_time_to_double(&out_time) == 0) {
267+
if (flb_time_to_double(&out_time) == 0.0) {
268268
flb_time_get(&out_time);
269269
}
270270

plugins/in_tail/tail_multiline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int flb_tail_mult_process_first(time_t now,
173173
file->mult_firstline = FLB_TRUE;
174174

175175
/* Validate obtained time, if not set, set the current time */
176-
if (flb_time_to_double(out_time) == 0) {
176+
if (flb_time_to_double(out_time) == 0.0) {
177177
flb_time_get(out_time);
178178
}
179179

0 commit comments

Comments
 (0)