]> granicus.if.org Git - procps-ng/commit
library: add missing meminfo logic, improve efficiency
authorJim Warner <james.warner@comcast.net>
Sun, 28 Jun 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 29 Jun 2015 11:29:24 +0000 (21:29 +1000)
commit7a98cab187f452f15f72a2aebebd0e5084f2b602
treedd47fc73ac9b7261073aab7eaa56944931a38ea5
parent500a90147563d3118f45c95d4a49a6812392286f
library: add missing meminfo logic, improve efficiency

This patch fills in some missing fields which have top
dependencies. Additionally, I've tried to mirror those
calculations Jaromir added for release 3.3.10. The one
calculation that remains missing is 'available' memory
for some kernels. For this API, we'll use a fall-back.

Lastly the lxc safeguards which were recently added to
the old procps library were incorporated here as well.

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