]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/cgtop/cgtop.c
cgtop: more sensible flushing behavior w/ non-TTY output
authorCharles Duffy <chaduffy@cisco.com>
Wed, 27 May 2015 22:30:11 +0000 (17:30 -0500)
committerCharles Duffy <chaduffy@cisco.com>
Wed, 10 Jun 2015 00:39:16 +0000 (19:39 -0500)
commitdcc7aacd67505b812214058dc9a8d321d8d98c7c
treeed77c970e62e6530193cd6b7084a7a6829483b58
parent780fe62ecab08850cefd136b95f38c15cb31c0ec
cgtop: more sensible flushing behavior w/ non-TTY output

- Explicitly flush stdout before sleep between iterations
- Only clear user keystrokes when output is to TTY
- Add a newline between output batches when output is not to TTY
src/cgtop/cgtop.c