mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Get timestamp as a number the new way
This commit is contained in:
parent
10e42a6c88
commit
61ebd0aa0f
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class LogStash::Filters::Sleep < LogStash::Filters::Base
|
|||
end
|
||||
|
||||
if @replay
|
||||
clock = event.ruby_timestamp.to_f
|
||||
clock = event["@timestamp"].to_f
|
||||
if @last_clock
|
||||
delay = clock - @last_clock
|
||||
time = delay/time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue