Skip to content

Commit

Permalink
Merge pull request #1506 from webtorrent/bnjmnt4n/playback-times
Browse files Browse the repository at this point in the history
Ensure that the minutes field in playback indicator is zero-padded.
  • Loading branch information
Borewit authored Nov 6, 2018
2 parents aef5669 + a676a20 commit 81e6d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/pages/player-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ function formatTime (time, total) {
}

const totalHours = Math.floor(total / 3600)
const totalMinutes = Math.floor(total % 3600 / 60)
const totalMinutes = Math.floor(total / 60)
const hours = Math.floor(time / 3600)
let minutes = Math.floor(time % 3600 / 60)
if (totalMinutes > 9) {
Expand Down

0 comments on commit 81e6d7f

Please sign in to comment.