fix remaining time calc

This commit is contained in:
jb-alvarado 2024-04-29 10:53:47 +02:00
parent d2ce326386
commit c4aa6f495f
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ watch([configID], () => {
})
function timeRemaining() {
let remaining = playlistStore.currentClipOut - playlistStore.currentClipIn - playlistStore.playedSec
let remaining = playlistStore.currentClipOut - playlistStore.playedSec
if (remaining < 0) {
remaining = 0

View File

@ -84,7 +84,7 @@ export const usePlaylist = defineStore('playlist', {
this.playedSec = item.played
this.ingestRuns = item.ingest
this.progressValue = (this.playedSec * 100) / this.currentClipOut- this.currentClipIn
this.progressValue = (this.playedSec * 100) / this.currentClipOut
},
},
})