]> granicus.if.org Git - procps-ng/commit
library: tweak newly added MemAvailable fall-back code
authorJim Warner <james.warner@comcast.net>
Thu, 17 Jul 2014 16:11:11 +0000 (11:11 -0500)
committerJaromir Capik <jcapik@redhat.com>
Fri, 18 Jul 2014 18:49:57 +0000 (20:49 +0200)
commite4f0b4ebf3eaa1bda9a0315ec7b113c73a510dd4
tree9394b8c6ab697e11c11c5858d6e3bab0c893cf19
parent6c148b4f8b2acfaf1edae9f8e92e91bdeb723e72
library: tweak newly added MemAvailable fall-back code

This commit just ensures recalculation of some amounts
for iterative processes, like top. It also trades some
repeated runtime calls to sysconf for a one time cost.

Reference(s):
http://www.freelists.org/post/procps/systemd-support-to-library,7
. fall-back calculations
commit b779855cf15d68f9038ff1809db18c0788e9ae70

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