svn commit: r298684 - head/usr.bin/systat
Marcelo Araujo
araujo at FreeBSD.org
Wed Apr 27 02:26:32 UTC 2016
Author: araujo
Date: Wed Apr 27 02:26:31 2016
New Revision: 298684
URL: https://svnweb.freebsd.org/changeset/base/298684
Log:
Use macro MIN() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.bin/systat/main.c
Modified: head/usr.bin/systat/main.c
==============================================================================
--- head/usr.bin/systat/main.c Wed Apr 27 02:25:21 2016 (r298683)
+++ head/usr.bin/systat/main.c Wed Apr 27 02:26:31 2016 (r298684)
@@ -276,7 +276,7 @@ display(void)
c = '|';
dellave = avenrun[0];
wmove(wload, 0, 0); wclrtoeol(wload);
- for (i = (j > 50) ? 50 : j; i > 0; i--)
+ for (i = MIN(j, 50); i > 0; i--)
waddch(wload, c);
if (j > 50)
wprintw(wload, " %4.1f", avenrun[0]);
More information about the svn-src-head
mailing list