summaryrefslogtreecommitdiff
path: root/src/cgtop/cgtop.c
Commit message (Collapse)AuthorAge
* Never call qsort on potentially NULL arraysZbigniew Jędrzejewski-Szmek2013-10-13
| | | | | | This extends 62678ded 'efi: never call qsort on potentially NULL arrays' to all other places where qsort is used and it is not obvious that the count is non-zero.
* cgtop: fixup the online helpBrandon Philips2013-09-04
| | | | | The online help shows the keys as uppercase but the code and manpage say lower case. Make the online help follow reality.
* cgroup: the "tasks" attribute is obsolete, cgroup.procs is the new replacementLennart Poettering2013-06-06
|
* cgtop: print absolute CPU times with format_timespanLennart Poettering2013-04-08
|
* util: make time formatting a bit smarterLennart Poettering2013-04-04
| | | | | | | | | | | Instead of outputting "5h 55s 50ms 3us" we'll now output "5h 55.050003s". Also, while outputting the accuracy is configurable. Basically we now try use "dot notation" for all time values > 1min. For >= 1s we use 's' as unit, otherwise for >= 1ms we use 'ms' as unit, and finally 'us'. This should give reasonably values in most cases.
* util: rename parse_usec() to parse_sec() sinds the default unit is secondsLennart Poettering2013-04-03
| | | | | | | | Internally we store all time values in usec_t, however parse_usec() actually was used mostly to parse values in seconds (unless explicit units were specified to define a different unit). Hence, be clear about this and name the function about what we pass into it, not what we get out of it.
* cgtop: add % as key to toggle time/percentageZbigniew Jędrzejewski-Szmek2013-04-02
|
* cgtop: optionally show CPU usage as time and become stdout sensitiveUmut Tezduyar2013-04-02
|
* cgtop --help: default depth is 3 not 2Maksim Melnikau2013-03-29
| | | | use default depth from variable for --help
* honor SELinux labels, when creating and writing config filesHarald Hoyer2013-02-14
| | | | | | | Also split out some fileio functions to fileio.c and provide a SELinux aware pendant in fileio-label.c see https://bugzilla.redhat.com/show_bug.cgi?id=881577
* util: unify line caching and column cachingLennart Poettering2012-10-19
|
* util: simplify column caching logicLennart Poettering2012-10-19
|
* cgtop: missing '-'Václav Pavlín2012-09-21
| | | | | | Return codes in systemd are negated and if (r < 0) if (r == ENOENT) was never true.
* continue work with error messages, log_oom()Shawn Landden2012-08-06
| | | | | | | Adds messages for formally silent errors: new "Failed on cmdline argument %s: %s". Removes some specific error messages for -ENOMEM in mount-setup.c. A few specific ones have been left in other binaries.
* cgtop: add --version optionZbigniew Jędrzejewski-Szmek2012-07-26
|
* cgtop: use full terminal widthZbigniew Jędrzejewski-Szmek2012-07-26
|
* Add a 'b' option to cgtop, equivalent to the same option in topDavid Strauss2012-07-26
| | | | [zj: use static]
* Add an 'n' option to cgtop (equivalent to top)David Strauss2012-07-26
|
* log.h: new log_oom() -> int -ENOMEM, use itShawn Landden2012-07-26
| | | | | | also a number of minor fixups and bug fixes: spelling, oom errors that didn't print errors, not properly forwarding error codes, few more consistency issues, et cetera
* use "Out of memory." consistantly (or with "\n")Shawn Landden2012-07-25
| | | | | | | | glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id
* util: rename join() to strjoin()Lennart Poettering2012-07-13
| | | | This is to match strappend() and the other string related functions.
* cgtop: work even if not all cgroups are availableShawn Landden2012-05-29
| | | | | cgtop quits on startup if all the cgroup mounts it expects are not available. Just continue without nonexistant ones.
* cgtop: change default depth to 3Lennart Poettering2012-05-22
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=49778
* util: split-out path-util.[ch]Kay Sievers2012-05-08
|
* move all tools to subdirsKay Sievers2012-04-12