Fixes bug 881632 - Forced duration to be an int (was a float).
Merge pull request #371 from AdrianGaudebert/881632-duration-as-int

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