Skip to content

Commit a713633

Browse files
fix: scale cache duration with speed again (#899)
fixes 00737e1
1 parent 56b62bb commit a713633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uosc/elements/Timeline.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function Timeline:render()
380380
local cache_opts = {
381381
size = self.font_size * 0.8, opacity = text_opacity * 0.6, border = options.text_border * state.scale,
382382
}
383-
local human = round(state.cache_duration) .. 's'
383+
local human = round(state.cache_duration / state.speed) .. 's'
384384
local width = text_width(human, cache_opts)
385385
local time_width = timestamp_width(state.time_human, time_opts)
386386
local time_width_end = timestamp_width(state.destination_time_human, time_opts)

0 commit comments

Comments
 (0)