lib/fluent/plugin/out_gelf.rb in fluent-plugin-gelf-hs-1.0.7 vs lib/fluent/plugin/out_gelf.rb in fluent-plugin-gelf-hs-1.0.8

- old
+ new

@@ -61,17 +61,17 @@ super end def format(tag, time, record) if defined? Fluent::EventTime and time.is_a? Fluent::EventTime then - timestamp = time.sec + (time.nsec.to_f/1000000000).round(3) + timestamp = time.to_i + (time.nsec.to_f/1000000000).round(3) else - timestamp = time + timestamp = time.to_i end begin make_gelfentry( - tag,time,record, + tag,timestamp,record, { :use_record_host => @use_record_host, :add_msec_time => @add_msec_time } ).to_msgpack