summaryrefslogtreecommitdiffstats
path: root/DOCS/lua_examples/status-line.lua
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/lua_examples/status-line.lua')
-rw-r--r--DOCS/lua_examples/status-line.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/DOCS/lua_examples/status-line.lua b/DOCS/lua_examples/status-line.lua
index be3374a7cf..d28bdcc082 100644
--- a/DOCS/lua_examples/status-line.lua
+++ b/DOCS/lua_examples/status-line.lua
@@ -34,7 +34,7 @@ function update_status_line()
atsl(mp.get_property_osd("percent-pos", -1))
atsl("%)")
- local r = mp.get_property_number("speed", -1)
+ local r = mp.get_property_number("speed", -1)
if r ~= 1 then
atsl(string.format(" x%4.2f", r))
end
@@ -54,14 +54,14 @@ function update_status_line()
atsl(" Late: ")
atsl(r)
end
-
+
r = mp.get_property_number("cache", 0)
if r > 0 then
atsl(string.format(" Cache: %d%% ", r))
end
-- Set the new status line
- mp.set_property("options/status-msg", newStatus)
+ mp.set_property("options/term-status-msg", newStatus)
end
-- Register the event