Skip to content

Commit

Permalink
in_tail: Fix wrong lower bound of group watch limit
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed May 17, 2022
1 parent c6c5989 commit 5f54dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/in_tail.rb
Expand Up @@ -551,7 +551,7 @@ def detach_watcher(tw, ino, close_io = true)

def throttling_is_enabled?(tw)
return true if @read_bytes_limit_per_second > 0
return true if tw.group_watcher && tw.group_watcher.limit > 0
return true if tw.group_watcher && tw.group_watcher.limit >= 0
false
end

Expand Down

0 comments on commit 5f54dd0

Please sign in to comment.