a little tweak to timeToPourcent. popcorn-port
authorhamidouk
Fri, 28 Oct 2011 11:07:54 +0200
branchpopcorn-port
changeset 160 d3f336807ec3
parent 159 de92bfdcbe4c
child 161 892efe407182
a little tweak to timeToPourcent.
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