svn commit: r298444 - head/usr.bin/vmstat
Marcelo Araujo
araujo at FreeBSD.org
Fri Apr 22 03:46:58 UTC 2016
Author: araujo
Date: Fri Apr 22 03:46:57 2016
New Revision: 298444
URL: https://svnweb.freebsd.org/changeset/base/298444
Log:
Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.bin/vmstat/vmstat.c
Modified: head/usr.bin/vmstat/vmstat.c
==============================================================================
--- head/usr.bin/vmstat/vmstat.c Fri Apr 22 03:43:06 2016 (r298443)
+++ head/usr.bin/vmstat/vmstat.c Fri Apr 22 03:46:57 2016 (r298444)
@@ -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 {
More information about the svn-src-head
mailing list