diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-02 21:48:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-06 22:31:33 +0100 |
commit | b093b6c5246b7f3f6ee5dc9c06983eb6a76cb5f6 (patch) | |
tree | a5537c501e7acbf7ffcee52ab728577df926feaf /bitbake/lib/bb | |
parent | 373e2096054d0f6bbeb96e8c6596c495df486160 (diff) | |
download | poky-b093b6c5246b7f3f6ee5dc9c06983eb6a76cb5f6.tar.gz |
bitbake: knotty: Reduce refresh of footer
When displaying larger number of events the client can get caught up in displaying
the footer, then immediately overwriting it. To avoid this, wait for pauses
in the event stream before displaying the footer to give a slightly more
friendly feel to the UI.
(Bitbake rev: 5d706c7cd6ee8d83b67ff18312d4c8119bea8878)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 1692e3295c..45200460b1 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -306,8 +306,10 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
306 | 306 | ||
307 | while True: | 307 | while True: |
308 | try: | 308 | try: |
309 | termfilter.updateFooter() | 309 | event = eventHandler.waitEvent(0) |
310 | event = eventHandler.waitEvent(0.25) | 310 | if event is None: |
311 | termfilter.updateFooter() | ||
312 | event = eventHandler.waitEvent(0.25) | ||
311 | if event is None: | 313 | if event is None: |
312 | if main.shutdown > 1: | 314 | if main.shutdown > 1: |
313 | break | 315 | break |