From 5f54dd045e6b8d5fb2b8c90006fdb1acf0836763 Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Tue, 17 May 2022 11:45:49 +0900 Subject: [PATCH] in_tail: Fix wrong lower bound of group watch limit Signed-off-by: Takuro Ashie --- lib/fluent/plugin/in_tail.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fluent/plugin/in_tail.rb b/lib/fluent/plugin/in_tail.rb index 774c6bdc8b..da9bba81c9 100644 --- a/lib/fluent/plugin/in_tail.rb +++ b/lib/fluent/plugin/in_tail.rb @@ -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