From 57ddd0a41ceb37e9dbbf84291602f1bbac72c887 Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Tue, 22 Feb 2022 15:20:47 +0100 Subject: [PATCH] Add a comment in command handling --- watch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/watch.py b/watch.py index ea15184..3ec1251 100755 --- a/watch.py +++ b/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: