summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/buildstats-summary4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buildstats-summary b/scripts/buildstats-summary
index 89348318af..f521d78650 100755
--- a/scripts/buildstats-summary
+++ b/scripts/buildstats-summary
@@ -75,7 +75,7 @@ def dump_buildstats(args, bs: buildstats.BuildStats):
75 for t in tasks: 75 for t in tasks:
76 if t.duration >= minimum: 76 if t.duration >= minimum:
77 line = f"{t.duration} {t.recipe}:{t.task}" 77 line = f"{t.duration} {t.recipe}:{t.task}"
78 if t.duration >= highlight: 78 if args.highlight and t.duration >= highlight:
79 print(f"\033[1m{line}\033[0m") 79 print(f"\033[1m{line}\033[0m")
80 else: 80 else:
81 print(line) 81 print(line)
@@ -111,7 +111,7 @@ def main(argv=None) -> int:
111 type=int, 111 type=int,
112 default=60, 112 default=60,
113 metavar="SECS", 113 metavar="SECS",
114 help="Highlight tasks longer than SECS seconds", 114 help="Highlight tasks longer than SECS seconds (0 disabled)",
115 ) 115 )
116 116
117 args = parser.parse_args(argv) 117 args = parser.parse_args(argv)