Fix error in vmstat documentation.

Inspection of vmstat.c and experimentation with the binary itself
both confirm that the units of the swap (si/so) fields are
controlled by the --unit option.

References:
 procps-ng/procps!69
 procps-ng/procps#100

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Robert Bowmaker 2018-06-23 08:07:47 +00:00 committed by Craig Small
parent 95df5a06f4
commit 463ed0049c

View File

@ -71,8 +71,8 @@ Switches outputs between 1000
.RI ( m ),
or 1048576
.RI ( M )
bytes. Note this does not change the swap (si/so) or block (bi/bo)
fields.
bytes. Note this does not change the block (bi/bo) fields, which are always
measured in blocks.
.TP
\fB\-t\fR, \fB\-\-timestamp\fR
Append timestamp to each line
@ -98,6 +98,7 @@ b: The number of processes in uninterruptible sleep.
.PP
.SS
.B "Memory"
These are affected by the \-\-unit option.
.nf
swpd: the amount of virtual memory used.
free: the amount of idle memory.
@ -109,6 +110,7 @@ active: the amount of active memory. (\-a option)
.PP
.SS
.B "Swap"
These are affected by the \-\-unit option.
.nf
si: Amount of memory swapped in from disk (/s).
so: Amount of memory swapped to disk (/s).