free: add 'available' memory if provided by the kernel
authorGuillermo Rodriguez <guille.rodriguez@gmail.com>
Tue, 30 Oct 2018 12:49:51 +0000 (13:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 30 Oct 2018 12:49:51 +0000 (13:49 +0100)
commitc8e3922ad838751e45bf4b3cb8608b228ee83c71
tree0e08b1016bb276e800b85bb1e98fbc7435cc6233
parent47839ae6797bcded0178893cb950d2e2f8be1f6f
free: add 'available' memory if provided by the kernel

Show estimated available memory if this is provided by the
kernel. See [1] for the full story.

 [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773

function                                             old     new   delta
free_main                                            537     633     +96
parse_cached_kb                                       85       -     -85
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 96/-85)             Total: 11 bytes

Signed-off-by: Guillermo Rodriguez <guille.rodriguez@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/free.c