diff --git a/src/uosc/elements/TopBar.lua b/src/uosc/elements/TopBar.lua index ee552998..04bd1ece 100644 --- a/src/uosc/elements/TopBar.lua +++ b/src/uosc/elements/TopBar.lua @@ -294,7 +294,7 @@ function TopBar:render() local text = '└ ' .. state.current_chapter.index .. ': ' .. state.current_chapter.title local next_chapter = state.chapters[state.current_chapter.index + 1] local chapter_end = next_chapter and next_chapter.time or state.duration or 0 - local remaining_time = (state.time and state.time or 0) - chapter_end + local remaining_time = ((state.time and state.time or 0) - chapter_end) / (state.speed or 1) local remaining_human = format_time(remaining_time, math.abs(remaining_time)) local opts = { size = font_size,