Signed-off-by: Jose Quaresma <jose.quare...@foundries.io>
---
 scripts/buildstats-summary | 4 ++--
 1 file 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):
     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)
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#179076): 
https://lists.openembedded.org/g/openembedded-core/message/179076
Mute This Topic: https://lists.openembedded.org/mt/97831417/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to