]> granicus.if.org Git - procps-ng/commit
library: add <pids> TIME_ALL/TIME_ELAPSED needed by ps
authorJim Warner <james.warner@comcast.net>
Wed, 30 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 5 Oct 2015 10:42:07 +0000 (21:42 +1100)
commit30997b967ad11da7815775aedd9683e9e77e4f13
treef2e4f01a812650ea2d7cebc21b6cebc438e8bfc9
parent042cfa71e7cbe9c2f020b29474d31ee48d270cac
library: add <pids> TIME_ALL/TIME_ELAPSED needed by ps

Shoot, here's yet another bow to ps needs. But it's ok
because it makes a lot of sense. Rather than force all
users into their own calculations do but it once here.

As an aside this need arose during ps testing when the
sorts were using TIME_START or TICS_ALL. That was just
fine for almost every need except 'etime' plus 'time'.

That 'etime' was sorting the opposite of what's wanted
when using TIME_START (of course) while 'time' yielded
some weird ordering because TICS_ALL was too granular.

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h