# HG changeset patch # User hamidouk # Date 1319792874 -7200 # Node ID d3f336807ec3e8f9c7cddc185af4f63938009842 # Parent de92bfdcbe4caae6fe02040a7014c11320bfb105 a little tweak to timeToPourcent. diff -r de92bfdcbe4c -r d3f336807ec3 src/js/utils.js --- a/src/js/utils.js Fri Oct 28 11:07:41 2011 +0200 +++ b/src/js/utils.js Fri Oct 28 11:07:54 2011 +0200 @@ -25,7 +25,8 @@ /* convert a time to a percentage in the media */ IriSP.timeToPourcent = function(time, timetotal){ - return (parseInt(Math.round(time/timetotal*100))); + // return (parseInt(Math.round(time/timetotal*100))); + return Math.floor((time/timetotal) * 100); }; /* for ie compatibility