Last.fm expects the song durations to be integers

Noticed this minor bug when Last.fm kept returning this error:
{"error":6,"message":"duration is not a valid integer: 216.527","links":[]}