Browse Source

Add a comment in command handling

check-vt100
Aleksander Kiryk 4 years ago committed by Aleksander Kiryk
parent
commit
57ddd0a41c
  1. 1
      watch.py

1
watch.py

@ -122,6 +122,7 @@ fcntl.fcntl(sys.stdin, fcntl.F_SETFL, flags | os.O_NONBLOCK)
# Gather data from sar output
while 1:
# Await sar output or a command sent from command handler in sargraph.py
rlist, _, _ = select.select([p.stdout, sys.stdin], [], [], 0.25)
now = datetime.datetime.now()
if sys.stdin in rlist:

Loading…
Cancel
Save