It is not common to have one pass with 100% usage, but it is not impossible, so handle this case too.
Showing the changes to player/lua/stats.lua (1 of 1 file). Show all
Unified · Split
| @@ -348,7 +348,7 @@ local function append_perfdata(header, s, dedicated_page) · 347 unmodified lines | |||
| 348 | end | 348 | end |
| 349 | -- Calculate font weight. 100 is minimum, 400 is normal, 700 bold, 900 is max | 349 | -- Calculate font weight. 100 is minimum, 400 is normal, 700 bold, 900 is max |
| 350 | local w = (700 * math.sqrt(i)) + 200 | 350 | local w = (700 * math.sqrt(i)) + 200 |
| 351 | return format("{\\b%d}%2d%%{\\b0}", w, i * 100) | 351 | return format("{\\b%d}%3d%%{\\b0}", w, i * 100) |
| 352 | end | 352 | end |
| 353 | 353 | ||
| 354 | -- ensure that the fixed title is one element and every scrollable line is | 354 | -- ensure that the fixed title is one element and every scrollable line is |
| @@ -372,7 +372,7 @@ local function append_perfdata(header, s, dedicated_page) · 17 unmodified lines | |||
| 372 | s[#s+1] = format(f, o.nl, o.indent, o.indent, | 372 | s[#s+1] = format(f, o.nl, o.indent, o.indent, |
| 373 | o.font_mono, pp(pass["last"]), | 373 | o.font_mono, pp(pass["last"]), |
| 374 | pp(pass["avg"]), pp(pass["peak"]), | 374 | pp(pass["avg"]), pp(pass["peak"]), |
| 375 | o.prefix_sep .. "\\h\\h", p(pass["last"], last_s[frame]), | 375 | o.prefix_sep .. "\\h", p(pass["last"], last_s[frame]), |
| 376 | o.font, o.prefix_sep, o.prefix_sep, pass["desc"]) | 376 | o.font, o.prefix_sep, o.prefix_sep, pass["desc"]) |
| 377 | 377 | ||
| 378 | if o.plot_perfdata and o.use_ass then | 378 | if o.plot_perfdata and o.use_ass then |