lml/ost#346: Fix JP's review comments.

- Use `unless` instead of `if not`
- Use floating point division.