Openembedded Bitbake Development
 help / color / mirror / Atom feed
From: WXbet <wxbet.oe@gmail.com>
To: bitbake-devel@lists.openembedded.org
Cc: peter.kjellerstedt@axis.com, WXbet <wxbet.oe@gmail.com>
Subject: [PATCH v2] knotty: show elapsed time on the task progress bar
Date: Thu, 27 Aug 2026 12:01:46 +0200	[thread overview]
Message-ID: <20260827100146.11256-1-wxbet.oe@gmail.com> (raw)
In-Reply-To: <20260819093321.3451-1-wxbet.oe@gmail.com>

The progress bar for the overall build shows a percentage and a bar but no
elapsed time, although a build easily runs for hours.

Add progressbar's Timer widget to it, which prints the same way as the bars
of the initialisation phase that stay on screen above it.

Signed-off-by: WXbet <wxbet.oe@gmail.com>
---
 lib/bb/ui/knotty.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 15025e8dd..1a3198b5c 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -354,7 +354,7 @@ class TerminalFilter(object):
                 msg = "Currently %2s running tasks (%s)" % (len(activetasks), cur_tasks)
             maxtask = self.helper.tasknumber_total
             if not self.main_progress or self.main_progress.maxval != maxtask:
-                widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar()]
+                widgets = [' ', progressbar.Percentage(), ' ', progressbar.Bar(), ' ', progressbar.Timer()]
                 self.main_progress = BBProgress("Running tasks", maxtask, widgets=widgets, resize_handler=self.sigwinch_handle)
                 self.main_progress.fd = self._footer_buf
                 self.main_progress.start(False)


  parent reply	other threads:[~2026-08-27 10:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 19:39 [PATCH] knotty: show elapsed time on the task progress bar WXbet
2026-08-18 19:54 ` WXbet
2026-08-19  8:22   ` [bitbake-devel] " Alexander Kanavin
2026-08-19  9:33     ` WXbet
2026-08-26 13:03       ` WXbet
2026-08-26 14:41       ` [bitbake-devel] " Peter Kjellerstedt
2026-08-26 15:15         ` WXbet
2026-08-27  8:22           ` [bitbake-devel] " Peter Kjellerstedt
2026-08-27 10:43             ` WXbet
2026-08-27 10:01       ` WXbet [this message]
2026-09-05 19:14         ` [PATCH v2] " WXbet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260827100146.11256-1-wxbet.oe@gmail.com \
    --to=wxbet.oe@gmail.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=peter.kjellerstedt@axis.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox