From c4ea382894fa69c0bdbe7dfc71d597d96c94145a Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 12 Sep 2016 02:49:04 +0200 Subject: stats: rename option timing_total to print_perfdata_total Should make its purpose more clear. Also add a comment to further explain its use. --- player/lua/stats.lua | 4 ++-- 1 file 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") -- cgit v1.2.3