Fixed typo in msToTime.js

This commit is contained in:
Christer Warén 2020-08-22 20:48:22 +03:00
parent 9c913cf2e5
commit 2ada1e3f08

View File

@ -1,7 +1,7 @@
module.exports = function msToTime(duration, format) { module.exports = function msToTime(duration, format) {
var seconds = Math.floor((duration / 1000) % 60), var seconds = Math.floor((duration / 1000) % 60),
minutes = Math.floor((duration / (1000 * 60)) % 60), minutes = Math.floor((duration / (1000 * 60)) % 60),
hours = Math.floor((duration / (1000 * 60 * 60)) % 24); hours = Math.floor((duration / (1000 * 60 * 60)) % 24),
days = Math.floor((duration / (1000 * 60 * 60 * 24))); days = Math.floor((duration / (1000 * 60 * 60 * 24)));
days = (days < 10) ? "0" + days : days; days = (days < 10) ? "0" + days : days;