# File lib/action_controller/upload_progress.rb, line 389 def completed_percent (@received_bytes * 100 / @total_bytes).to_i rescue 0 end