src/js/utils.js
branchpopcorn-port
changeset 160 d3f336807ec3
parent 103 2dfd89e91c3a
child 238 6008172a0592
child 252 fd84e0fb26d8
--- 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