From 549afdb9c5a5183f9d77c00140ab2e12ba13cd1f Mon Sep 17 00:00:00 2001 From: ChrisK2 Date: Thu, 10 Jul 2014 11:17:51 +0200 Subject: osc: round displayed cache value Fixes #919 --- player/lua/osc.lua | 6 +++--- 1 file 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 -- cgit v1.2.3