summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2016-04-22 03:46:57 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2016-04-22 03:46:57 +0000
commitee03c16e64c526041facc2edd4b7abf93f2d1022 (patch)
treea3bd39711ba6a40254834857b206d71df1d765ca /usr.bin/vmstat
parentcadc2836d850c946c9efd5ac92b2e24a3ab52779 (diff)
downloadsrc-test2-ee03c16e64c526041facc2edd4b7abf93f2d1022.tar.gz
src-test2-ee03c16e64c526041facc2edd4b7abf93f2d1022.zip
Notes
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 03f4f964ebc0..0dbd2d165dda 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -884,7 +884,7 @@ printhdr(int maxid, u_long cpumask)
{
int i, num_shown;
- num_shown = (num_selected < maxshowdevs) ? num_selected : maxshowdevs;
+ num_shown = MIN(num_selected, maxshowdevs);
if (hflag) {
xo_emit("{T:procs} {T:memory} {T:/page%*s}", 19, "");
} else {