Method: RequestLogAnalyzer::Tracker::HourlySpread#update
- Defined in:
- lib/request_log_analyzer/tracker/hourly_spread.rb
#update(request) ⇒ Object
Check if the timestamp in the request and store it. request
The request.
44 45 46 47 48 49 |
# File 'lib/request_log_analyzer/tracker/hourly_spread.rb', line 44 def update(request) = request.first([:field]) @hour_frequencies[.to_s[8..9].to_i] +=1 @first = if < @first @last = if > @last end |