Skip to content

Commit

Permalink
Merge pull request sbfkcel#187 from henly2/master
Browse files Browse the repository at this point in the history
Fix format Audio time again, the time may be float, 59.6 will format …
  • Loading branch information
sbfkcel authored Mar 2, 2021
2 parents 284523e + 3ed2fd4 commit ee7c369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion audio-player/Audio.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fillIn = val => `${val < 10 ? '0' : ''}${val}`,
formatTime = time => {
formatTime = _time => {
let time = Math.round(_time);
let second = Math.round(time % 60),
minute = Math.floor(time / 60 % 60),
hour = Math.floor(time / 60 / 60);
Expand Down

0 comments on commit ee7c369

Please sign in to comment.