Fix bug with non-integer timeouts

I didn't have to add tests for this as they were already failing.
Gracias!