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 | |
parent | 373e2096054d0f6bbeb96e8c6596c495df486160 (diff) | |
download | ast2050-yocto-poky-b093b6c5246b7f3f6ee5dc9c06983eb6a76cb5f6.zip ast2050-yocto-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')
-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 1692e32..4520046 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): while True: try: - termfilter.updateFooter() - event = eventHandler.waitEvent(0.25) + event = eventHandler.waitEvent(0) + if event is None: + termfilter.updateFooter() + event = eventHandler.waitEvent(0.25) if event is None: if main.shutdown > 1: break |