diff options
author | ChrisK2 <spam@kalania.de> | 2014-07-10 11:17:51 +0200 |
---|---|---|
committer | ChrisK2 <spam@kalania.de> | 2014-07-10 11:17:51 +0200 |
commit | 549afdb9c5a5183f9d77c00140ab2e12ba13cd1f (patch) | |
tree | a8edafffa7819adacf1a318ab63789e7083770ba /player | |
parent | d68d4dd9841dc22dcafbf1f69878caa91f617925 (diff) | |
download | mpv-549afdb9c5a5183f9d77c00140ab2e12ba13cd1f.tar.bz2 mpv-549afdb9c5a5183f9d77c00140ab2e12ba13cd1f.tar.xz |
osc: round displayed cache value
Fixes #919
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/osc.lua | 6 |
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 |