]> granicus.if.org Git - procps-ng/commit
top: exploit new kb_main_available, make Jaromir happy
authorJim Warner <james.warner@comcast.net>
Thu, 17 Jul 2014 18:13:13 +0000 (13:13 -0500)
committerJaromir Capik <jcapik@redhat.com>
Fri, 18 Jul 2014 18:49:57 +0000 (20:49 +0200)
commitd310a18fc2391ba06f3531aff020c97057c0ed3c
tree50d50b34ce98acce56eecdc786d65c7253edcaca
parent9500dc198c6347768a71cdf4a6a2a8d5cba903f3
top: exploit new kb_main_available, make Jaromir happy

This patch will trade a former pessimistic calculation
of free physical memory for a more optimistic one that
uses the newly added kb_main_available library export.

But in case one might wish to return to the old former
method, there's a new #define that was made available.

[ the new calculation will affect graphing mode only ]

Reference(s):
http://www.freelists.org/post/procps/systemd-support-to-library,9

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.1
top/top.c
top/top.h
top/top_nls.c