We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7b3fd commit 6799d03Copy full SHA for 6799d03
lib/logstash/outputs/s3/time_rotation_policy.rb
@@ -10,11 +10,11 @@ def initialize(time_file)
10
raise LogStash::ConfigurationError, "`time_file` need to be greather than 0"
11
end
12
13
- @time_file = time_file
+ @time_file = time_file * 60
14
15
16
def rotate?(file)
17
- file.size > 0 && ((Time.now - file.ctime)/60).floor >= time_file
+ file.size > 0 && (Time.now - file.ctime) >= time_file
18
19
20
def need_periodic?
0 commit comments