Skip to content

Commit

Permalink
in_winevtlog: Fix threshold condition to avoid unnecessary warning
Browse files Browse the repository at this point in the history
Signed-off-by: Meet <[email protected]>
  • Loading branch information
Meetp369 authored and edsiper committed Jun 6, 2024
1 parent 8035a0a commit 79d5de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/in_winevtlog/in_winevtlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ 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);
flb_plg_debug(ctx->ins,
"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);
Expand Down

0 comments on commit 79d5de3

Please sign in to comment.