bitrate()
public
Calculates the bitrate
in bytes/second. If the transfer is stalled or just started, the bitrate
will be 0
# File actionpack/lib/action_controller/upload_progress.rb, line 435
def bitrate
history_bytes, history_time = @history.transpose.map { |vals| vals.inject { |sum, v| sum + v } }
history_bytes / history_time rescue 0
end