Method: Jets::Cfn::Upload#pretty_time
- Defined in:
- lib/jets/cfn/upload.rb
#pretty_time(total_seconds) ⇒ Object
128 129 130 131 132 133 134 135 136 |
# File 'lib/jets/cfn/upload.rb', line 128 def pretty_time(total_seconds) minutes = (total_seconds / 60) % 60 seconds = total_seconds % 60 if total_seconds < 60 "#{seconds.to_i}s" else "#{minutes.to_i}m #{seconds.to_i}s" end end |