From bc99c6f83552a4ade54c06715e6be62f6973984f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 17 Oct 2024 23:47:37 +0800 Subject: [PATCH] stall-analyser: pass args.tmin instead of tmin 8e583411 introduced a regression, which passes an undefined variable of `tmin` to `print_stats()`. in this change, we pass `args.tmin` instead of `tmin` to this function. Signed-off-by: Kefu Chai --- scripts/stall-analyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/stall-analyser.py b/scripts/stall-analyser.py index 70d31e83c2..6c1b37ad2c 100755 --- a/scripts/stall-analyser.py +++ b/scripts/stall-analyser.py @@ -442,7 +442,7 @@ def main(): sys.exit() if args.format == 'graph': print_command_line_options(args) - print_stats(tally, tmin) + print_stats(tally, args.tmin) render.print_graph(args.direction, args.width, args.branch_threshold) except BrokenPipeError: pass