Browse Source

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>
set-pr-number
Richard Purdie 8 years ago
parent
commit
b093b6c524
  1. 6
      bitbake/lib/bb/ui/knotty.py

6
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

Loading…
Cancel
Save