lib/logstash/outputs/scalyr.rb
def should_transmit_status?
    @last_status_transmit_time_lock.synchronize do
      saved_last_time = @last_status_transmit_time
      if Time.now.to_i - saved_last_time.to_i > @status_report_interval
        @last_status_transmit_time = Float::INFINITY
        return saved_last_time
      end
    end
  end
# Returns true if it is time to transmit status
Returns true if it is time to transmit status
Returns true if it is time to transmit status
def should_transmit_status?
    @last_status_transmit_time_lock.synchronize do
      saved_last_time = @last_status_transmit_time
      if Time.now.to_i - saved_last_time.to_i > @status_report_interval
        @last_status_transmit_time = Float::INFINITY
        return saved_last_time
      end
    end
  end
def should_transmit_status? @last_status_transmit_time_lock . synchronize do saved_last_time = @last_status_transmit_time if Time . now . to_i - saved_last_time . to_i > @status_report_interval @last_status_transmit_time = Float :: INFINITY return saved_last_time end end end
Returns true if it is time to transmit status
Returns true if it is time to transmit status