]> granicus.if.org Git - procps-ng/commitdiff
doc: Note new Used behavour
authorCraig Small <csmall@dropbear.xyz>
Sat, 25 Jun 2022 01:42:08 +0000 (11:42 +1000)
committerCraig Small <csmall@dropbear.xyz>
Sat, 25 Jun 2022 01:42:08 +0000 (11:42 +1000)
Added note to NEWS in the lbirary section
Updated free.1 as it specifies the calculation

Signed-off-by: Craig Small <csmall@dropbear.xyz>
NEWS
free.1

diff --git a/NEWS b/NEWS
index 997044aa49d35e30b01cec05491aeeb7ed1bcf74..e3e7148ce7914c7d34dc0f72c8f5b857de07b10a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 procps-ng-NEXT
   * library
     Re-add elogind support                                 merge #151
+    Used memory is Total - Available
   * pmap: Dont reuse stdin filehandle                      issue #231
   * ps: threads again display when -L is used with -q      issue #234
   * ps: proper aix format string behavior was restored
diff --git a/free.1 b/free.1
index e755c80f805d0de16a14c67077c21012d0889fec..a12e287e011f2a94247401b980f88967cec237ac 100644 (file)
--- a/free.1
+++ b/free.1
@@ -2,7 +2,7 @@
 .\"  This page Copyright (C) 1993 Matt Welsh, mdw@sunsite.unc.edu.
 .\"  Long options where added at April 15th, 2011.
 .\"  Freely distributable under the terms of the GPL
-.TH FREE 1 "2020-06-16" "procps-ng" "User Commands"
+.TH FREE 1 "2022-06-25" "procps-ng" "User Commands"
 .SH NAME
 free \- Display amount of free and used memory in the system
 .SH SYNOPSIS
@@ -19,7 +19,7 @@ columns are:
 Total installed memory (MemTotal and SwapTotal in /proc/meminfo)
 .TP
 \fBused\fR
-Used memory (calculated as \fBtotal\fR - \fBfree\fR - \fBbuffers\fR - \fBcache\fR)
+Used or unavailable memory (calculated as \fBtotal\fR - \fBavailable\fR)
 .TP
 \fBfree\fR
 Unused memory (MemFree and SwapFree in /proc/meminfo)