Use MIN() macro from sys/param.h.
MFC after: 2 weeks.
This commit is contained in:
parent
cadc2836d8
commit
ee03c16e64
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user