Get timestamp as a number the new way

This commit is contained in:
Jordan Sissel 2013-08-25 00:05:57 -07:00
parent 10e42a6c88
commit 61ebd0aa0f

View file

@ -88,7 +88,7 @@ class LogStash::Filters::Sleep < LogStash::Filters::Base
end end
if @replay if @replay
clock = event.ruby_timestamp.to_f clock = event["@timestamp"].to_f
if @last_clock if @last_clock
delay = clock - @last_clock delay = clock - @last_clock
time = delay/time time = delay/time