summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2016-09-12 02:49:04 +0200
committerwm4 <wm4@nowhere>2017-10-09 20:40:31 +0200
commitc4ea382894fa69c0bdbe7dfc71d597d96c94145a (patch)
tree9ee884938f5b5347d68ab8bbc4916771759b58b9 /player
parent5a9ccfdcb8d130b697a4c7c3635be05f7cac9c7e (diff)
downloadmpv-c4ea382894fa69c0bdbe7dfc71d597d96c94145a.tar.bz2
mpv-c4ea382894fa69c0bdbe7dfc71d597d96c94145a.tar.xz
stats: rename option timing_total to print_perfdata_total
Should make its purpose more clear. Also add a comment to further explain its use.
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 1b3a61d739..336934c5c6 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -20,7 +20,7 @@ local o = {
ass_formatting = true,
timing_warning = true,
timing_warning_th = 0.85, -- *no* warning threshold (warning when > target_fps * timing_warning_th)
- timing_total = false,
+ print_perfdata_total = false, -- prints an additional line adding up the perfdata lines
debug = false,
-- Graph options and style
@@ -296,7 +296,7 @@ local function append_perfdata(s)
s[#s+1] = format(f, o.nl, o.indent, o.indent, o.font_mono,
hl(vo_p["upload-last"], last_s), hl(vo_p["upload-avg"], avg_s),
hl(vo_p["upload-peak"], -math.huge), o.font, o.prefix_sep, usuffix)
- if o.timing_total then
+ if o.print_perfdata_total then
s[#s+1] = format(f, o.nl, o.indent, o.indent, o.font_mono,
hl(last_s, last_s), hl(avg_s, avg_s),
hl(peak_s, peak_s), o.font, o.prefix_sep, o.prefix_sep .. "Total")