Commit e59cc890 authored by David Wilson's avatar David Wilson

examples: fix mitop example.

parent 2ce71b33
...@@ -127,8 +127,8 @@ class Painter(object): ...@@ -127,8 +127,8 @@ class Painter(object):
def local_main(painter, router, select, delay): def local_main(painter, router, select, delay):
next_paint = 0 next_paint = 0
while True: while True:
recv, (msg, data) = select.get() msg = select.get()
parse_output(recv.host, data) parse_output(msg.receiver.host, msg.unpickle())
if next_paint < time.time(): if next_paint < time.time():
next_paint = time.time() + delay next_paint = time.time() + delay
painter.paint() painter.paint()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment