Skip to content

Commit f4ca7b5

Browse files
committed
Merge pull request remy#30 from kevinmeziere/master
Incorrect time calculation
2 parents c36729a + 47ae9df commit f4ca7b5

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)