File tree Expand file tree Collapse file tree
packages/webui/src/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -887,9 +887,11 @@ export function getPlaylistTimingDiff(
887887 diff =
888888 ( timingContext . asPlayedPlaylistDuration || 0 ) -
889889 ( timing . expectedDuration ?? timingContext . totalPlaylistDuration ?? 0 )
890- } else if ( PlaylistTiming . isPlaylistTimingBackTime ( timing ) ) {
891- // we want to see how late we've ended compared to the expectedEnd
892- diff = startedPlayback + ( timingContext . asPlayedPlaylistDuration || 0 ) - timing . expectedEnd
890+ } else if ( PlaylistTiming . isPlaylistDurationTimed ( timing ) ) {
891+ // we want to know how heavy/light we were compared to the original plan
892+ diff =
893+ ( timingContext . asPlayedPlaylistDuration || 0 ) -
894+ ( timing . expectedDuration ?? timingContext . totalPlaylistDuration ?? 0 )
893895 }
894896 }
895897
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function RundownHeaderExpectedEnd({
3030 { ! simplified && expectedEnd !== undefined ? (
3131 < Countdown label = { t ( 'Plan. End' ) } time = { expectedEnd } className = "rundown-header__show-timers-countdown" />
3232 ) : null }
33- { estEnd !== null ? (
33+ { estEnd !== undefined ? (
3434 < Countdown label = { t ( 'Est. End' ) } time = { estEnd } className = "rundown-header__show-timers-countdown" />
3535 ) : null }
3636 </ div >
You can’t perform that action at this time.
0 commit comments