mirror of
https://github.com/beetbox/beets.git
synced 2026-01-13 03:34:31 +01:00
Fix jumping time in beets.js
Round was used instead of floor
This commit is contained in:
parent
1254d48b72
commit
df83516086
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ var timeFormat = function(secs) {
|
|||
return '0:00';
|
||||
}
|
||||
secs = Math.round(secs);
|
||||
var mins = '' + Math.round(secs / 60);
|
||||
var mins = '' + Math.floor(secs / 60);
|
||||
secs = '' + (secs % 60);
|
||||
if (secs.length < 2) {
|
||||
secs = '0' + secs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue