From 79d5de3c77dc2d8c5fea742c82c9f0da036be1cc Mon Sep 17 00:00:00 2001 From: Meet Date: Sun, 28 Apr 2024 16:08:43 +0530 Subject: [PATCH] in_winevtlog: Fix threshold condition to avoid unnecessary warning Signed-off-by: Meet --- plugins/in_winevtlog/in_winevtlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/in_winevtlog/in_winevtlog.c b/plugins/in_winevtlog/in_winevtlog.c index bf83bf48c68..7b272f9d092 100644 --- a/plugins/in_winevtlog/in_winevtlog.c +++ b/plugins/in_winevtlog/in_winevtlog.c @@ -74,7 +74,7 @@ static int in_winevtlog_init(struct flb_input_instance *in, /* Set up total reading size threshold */ if (ctx->total_size_threshold >= MINIMUM_THRESHOLD_SIZE && - ctx->total_size_threshold < MAXIMUM_THRESHOLD_SIZE) { + ctx->total_size_threshold <= MAXIMUM_THRESHOLD_SIZE) { flb_utils_bytes_to_human_readable_size((size_t) ctx->total_size_threshold, human_readable_size, sizeof(human_readable_size) - 1); @@ -82,7 +82,7 @@ static int in_winevtlog_init(struct flb_input_instance *in, "read limit per cycle is set up as %s", human_readable_size); } - else if (ctx->total_size_threshold >= MAXIMUM_THRESHOLD_SIZE) { + else if (ctx->total_size_threshold > MAXIMUM_THRESHOLD_SIZE) { flb_utils_bytes_to_human_readable_size((size_t) MAXIMUM_THRESHOLD_SIZE, human_readable_size, sizeof(human_readable_size) - 1);