From 13d4b2a4552cb4f2c95e5793592ec4ba810702c8 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 24 Mar 2023 19:30:31 +0000 Subject: buildstats-summary: add an option to disable bold (From OE-Core rev: b9a0ceebe9aa1e79d97508e7ab2fc39ca7c6637f) Signed-off-by: Jose Quaresma Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- scripts/buildstats-summary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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): for t in tasks: if t.duration >= minimum: line = f"{t.duration} {t.recipe}:{t.task}" - if t.duration >= highlight: + if args.highlight and t.duration >= highlight: print(f"\033[1m{line}\033[0m") else: print(line) @@ -111,7 +111,7 @@ def main(argv=None) -> int: type=int, default=60, metavar="SECS", - help="Highlight tasks longer than SECS seconds", + help="Highlight tasks longer than SECS seconds (0 disabled)", ) args = parser.parse_args(argv) -- cgit v1.2.3-54-g00ecf