From 61ebd0aa0fe180e7777e49df75ca0de82de53bad Mon Sep 17 00:00:00 2001 From: Jordan Sissel Date: Sun, 25 Aug 2013 00:05:57 -0700 Subject: [PATCH] Get timestamp as a number the new way --- lib/logstash/filters/sleep.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/filters/sleep.rb b/lib/logstash/filters/sleep.rb index ce70576b9..a936f79ab 100644 --- a/lib/logstash/filters/sleep.rb +++ b/lib/logstash/filters/sleep.rb @@ -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