diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js index cccbfbe..bb75904 100644 --- a/overcomplicatedStatuses.js +++ b/overcomplicatedStatuses.js @@ -70,8 +70,8 @@ module.exports = { if (activity.timestamps) { if (activity.timestamps.start) { if (activity.timestamps.end) { - var timeLeft = Math.round((activity.timestamps.end - Date.now()) / 1000) - var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000) + var timeLeft = ((activity.timestamps.end - Date.now()) / 1000) + var totalTime = ((activity.timestamps.end - activity.timestamps.start) / 1000) return `

${timeFormatter((Date.now() - activity.timestamps.start))}

@@ -84,9 +84,8 @@ module.exports = { .lengthBar${index} > div { animation-name: songSlider${index}; animation-duration: ${totalTime}s; - animation-delay: ${timeLeft - totalTime}s; + animation-delay: ${timeLeft - totalTime - 1}s; animation-timing-function: linear; - animation-iteration-count: infinite; }