Skip to content

Commit 47ae9df

Browse files
author
kevinmeziere
committed
Changed time minute/second calculation to use floor instead of round, for accurate time calculation.
1 parent 8eb9d57 commit 47ae9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/video.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
function asTime(t) {
9696
t = Math.round(t);
9797
var s = t % 60;
98-
var m = Math.round(t / 60);
98+
var m = Math.floor(t / 60);
9999

100100
return two(m) + ':' + two(s);
101101
}

0 commit comments

Comments
 (0)