From: Charles Duffy <[email protected]> In addition to the previously-submitted patch adding support for "raw" (numeric byte-count, as opposed to human-readable) values, this series adds several new enhancements:
- Allow the user to specify a strftime-compatible string to use as header. - Retain default behavior of using only one iteration when output is not to a TTY, but allow endless looping or a set iteration count to be selected. - Improve output format in the non-TTY case for easy parsing (separating batches with an empty line, rather than the de facto "\r \r" string intended to clear artifacts from user input, and ensuring that flushing stdout happens *before* the sleep between runs). The strftime support, by its nature, requires use of an externally-provided format string; consequently, an appropriate pragma is used to suppress warnings from gcc. Feedback appreciated. Charles Duffy (4): cgtop: raw output option (disable conversion to human-readable units) cgtop: allow user to force looping behavior even in non-TTY mode cgtop: more sensible flushing behavior w/ non-TTY output cgtop: support time header with user-specified format string src/cgtop/cgtop.c | 100 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 81 insertions(+), 19 deletions(-) -- 2.0.0 _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
