]> granicus.if.org Git - procps-ng/commit
library: lift item restrictions on 'get()', <STAT> api
authorJim Warner <james.warner@comcast.net>
Tue, 10 May 2016 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 11 May 2016 21:51:10 +0000 (07:51 +1000)
commit5ec5002b0dd0c993c4e57a9158d9723d3975f2a4
tree1193fc05b57cb04cd4d77d43e8f83e0c6fce80dc
parent1417ba56b57f3697fc6dcd08a12e29541439e5d1
library: lift item restrictions on 'get()', <STAT> api

In the commit referenced below it was acknowledged the
procps_stat_get() function will intentionally restrict
returned values by excluding DELTA items among others.

Upon reflection that decision seemed rather arbitrary,
and so has now been lifted. And, while the initial use
of a DELTA will return 0, subsequent calls to that get
function will now return the difference (providing one
second, at least, has elapsed between any such calls).

Reference(s):
. reference to design decisions
commit abc71a46ada71b790eb526d6cddb91e0d0aed4cb

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