Use macro MIN() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
araujo 2016-04-27 02:26:31 +00:00
parent c39e007779
commit 5d51917955

View File

@ -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]);