Skip to content

Commit 36156e0

Browse files
authored
Merge pull request syslog-ng#5002 from HofiOne/multiline-timeout-should-accept-float
multiline-options: Allow multi_line_timeout set to a none integer value
2 parents 4bd09cf + d9b7d24 commit 36156e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/affile/affile-grammar.ym

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ source_affile_options
179179
;
180180

181181
source_affile_option
182-
: KW_FOLLOW_FREQ '(' nonnegative_float ')' { file_reader_options_set_follow_freq(last_file_reader_options, (long) ($3 * 1000)); }
183-
| KW_PAD_SIZE '(' nonnegative_integer ')' { last_log_proto_options->pad_size = $3; }
182+
: KW_FOLLOW_FREQ '(' nonnegative_float ')' { file_reader_options_set_follow_freq(last_file_reader_options, (gint) ($3 * 1000)); }
183+
| KW_PAD_SIZE '(' nonnegative_integer ')' { last_log_proto_options->pad_size = $3; }
184184
| multi_line_option
185185
| multi_line_timeout
186186
| file_perm_option
@@ -240,9 +240,9 @@ source_afpipe_option
240240
;
241241

242242
multi_line_timeout
243-
: KW_MULTI_LINE_TIMEOUT '(' nonnegative_integer ')'
243+
: KW_MULTI_LINE_TIMEOUT '(' nonnegative_float ')'
244244
{
245-
file_reader_options_set_multi_line_timeout(last_file_reader_options, ($3 * 1000));
245+
file_reader_options_set_multi_line_timeout(last_file_reader_options, (gint) ($3 * 1000));
246246
}
247247
;
248248

0 commit comments

Comments
 (0)