Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The to_f there was to cover the case where time is nil -- the litres method will always return a number.
Because
0.5
is a float already, you you don't need to convert time to a float(time * 0.5).floor
is enough