osc: round displayed cache value

Fixes #919
This commit is contained in:
ChrisK2 2014-07-10 11:17:51 +02:00
parent d68d4dd984
commit 549afdb9c5
1 changed files with 3 additions and 3 deletions

View File

@ -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