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 b779855cf1

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2014-07-17 11:11:11 -05:00
committed by Jaromir Capik
parent 6c148b4f8b
commit e4f0b4ebf3
3 changed files with 7 additions and 2 deletions

View File

@ -44,6 +44,7 @@ global:
open_psdb;
open_psdb_message;
openproc;
page_bytes;
pretty_print_signals;
print_uptime;
procps_version;