module Formatting::UpstreamResponseTime0

Public Instance Methods

value(log_line, color) click to toggle source
# File lib/ntail/formatting.rb, line 354
def value(log_line, color)
  if color && Sickill::Rainbow.enabled
    # 15 = 6 + 9, the extra amount of bytes required for the ANSI escape codes...
    "%15s" % foreground(log_line.upstream_response_time, color)
  else
    "%6s" % log_line.upstream_response_time
  end
end