summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 62f8245995..595dfc2521 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2095,10 +2095,10 @@ function osc_init()
dmx_cache = state.dmx_cache
end
local min = math.floor(dmx_cache / 60)
- local sec = dmx_cache % 60
+ local sec = math.floor(dmx_cache % 60) -- don't round e.g. 59.9 to 60
return "Cache: " .. (min > 0 and
string.format("%sm%02.0fs", min, sec) or
- string.format("%3.0fs", dmx_cache))
+ string.format("%3.0fs", sec))
end
-- volume