Fixes bug 881632 - Forced duration to be an int (was a float).

@rhelmer r?