Skip to content

Commit 79d5de3

Browse files
Meetp369edsiper
authored andcommitted
in_winevtlog: Fix threshold condition to avoid unnecessary warning
Signed-off-by: Meet <[email protected]>
1 parent 8035a0a commit 79d5de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/in_winevtlog/in_winevtlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ static int in_winevtlog_init(struct flb_input_instance *in,
7474

7575
/* Set up total reading size threshold */
7676
if (ctx->total_size_threshold >= MINIMUM_THRESHOLD_SIZE &&
77-
ctx->total_size_threshold < MAXIMUM_THRESHOLD_SIZE) {
77+
ctx->total_size_threshold <= MAXIMUM_THRESHOLD_SIZE) {
7878
flb_utils_bytes_to_human_readable_size((size_t) ctx->total_size_threshold,
7979
human_readable_size,
8080
sizeof(human_readable_size) - 1);
8181
flb_plg_debug(ctx->ins,
8282
"read limit per cycle is set up as %s",
8383
human_readable_size);
8484
}
85-
else if (ctx->total_size_threshold >= MAXIMUM_THRESHOLD_SIZE) {
85+
else if (ctx->total_size_threshold > MAXIMUM_THRESHOLD_SIZE) {
8686
flb_utils_bytes_to_human_readable_size((size_t) MAXIMUM_THRESHOLD_SIZE,
8787
human_readable_size,
8888
sizeof(human_readable_size) - 1);

0 commit comments

Comments
 (0)