summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChrisK2 <spam@kalania.de>2014-07-10 11:17:51 +0200
committerChrisK2 <spam@kalania.de>2014-07-10 11:17:51 +0200
commit549afdb9c5a5183f9d77c00140ab2e12ba13cd1f (patch)
treea8edafffa7819adacf1a318ab63789e7083770ba
parentd68d4dd9841dc22dcafbf1f69878caa91f617925 (diff)
downloadmpv-549afdb9c5a5183f9d77c00140ab2e12ba13cd1f.tar.bz2
mpv-549afdb9c5a5183f9d77c00140ab2e12ba13cd1f.tar.xz
osc: round displayed cache value
Fixes #919
-rw-r--r--player/lua/osc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 632d50d969..4a41806217 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -920,11 +920,11 @@ function osc_init()
local eventresponder = {}
local contentF = function (ass)
- local cache = mp.get_property("cache")
+ local cache = mp.get_property_osd("cache")
if not (cache == nil) then
- cache = tonumber(mp.get_property("cache"))
+ cache = tonumber(cache)
if (cache < 45) then
- ass:append("Cache: " .. (cache) .."%")
+ ass:append("Cache: " .. (math.floor(cache)) .."%")
end
end
end