Method: Kronk::Response#byterate
- Defined in:
- lib/kronk/response.rb
#byterate ⇒ Object
If time was set, returns bytes-per-second for the whole response, including headers.
167 168 169 170 |
# File 'lib/kronk/response.rb', line 167 def byterate return 0 unless raw && @time.to_f > 0 @byterate = self.total_bytes / @time.to_f end |