[bitbake-devel] [PATCH] bitbake: ui/knotty: allow rate for indeterminate progress
Chris Laplante
chris.laplante at agilent.com
Sat Mar 9 18:22:33 UTC 2019
There is no reason not to allow showing a rate for indeterminate task
progress. It can be useful, e.g. when downloading from a server that
doesn't give the total download size.
Signed-off-by: Chris Laplante <chris.laplante at agilent.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 fa88e6c..f4ef19d 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -293,8 +293,8 @@ class TerminalFilter(object):
if start_time:
pbar.start_time = start_time
pbar.setmessage('%s:%s' % (tasknum, pbar.msg.split(':', 1)[1]))
+ pbar.setextra(rate)
if progress > -1:
- pbar.setextra(rate)
content = pbar.update(progress)
else:
content = pbar.update(1)
--
2.7.4
More information about the bitbake-devel
mailing list