diff options
author | jhay <jhay@FreeBSD.org> | 1999-04-22 14:34:53 +0000 |
---|---|---|
committer | jhay <jhay@FreeBSD.org> | 1999-04-22 14:34:53 +0000 |
commit | cf7ba8e8fa0449d9ea8ff4e1603165262bd40cbf (patch) | |
tree | 2c7120e1a41f659163bdca315e2eafec0491d6b3 /usr.bin/top | |
parent | 31282b93d094f6185d2007c21fbaa1ced5338664 (diff) | |
download | FreeBSD-src-cf7ba8e8fa0449d9ea8ff4e1603165262bd40cbf.zip FreeBSD-src-cf7ba8e8fa0449d9ea8ff4e1603165262bd40cbf.tar.gz |
Fix the display of the "nice" value of processes like ntpd that use the
posix sched_setscheduler() to set their priority.
Noticed by: Mark Allwright <mallwri@orion.didata.co.za>
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index f7ad95a..bef47d2 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -19,7 +19,7 @@ * Steven Wallace <swallace@freebsd.org> * Wolfram Schneider <wosch@FreeBSD.org> * - * $Id: machine.c,v 1.22 1999/03/05 16:38:13 bde Exp $ + * $Id: machine.c,v 1.23 1999/03/07 06:55:47 bde Exp $ */ @@ -620,7 +620,7 @@ char *(*get_userid)(); */ (PP(pp, p_rtprio.type) == RTP_PRIO_NORMAL ? PP(pp, p_nice) - NZERO : - (PP(pp, p_rtprio.type) == RTP_PRIO_REALTIME ? + (RTP_PRIO_IS_REALTIME(PP(pp, p_rtprio.type)) ? (PRIO_MIN - 1 - RTP_PRIO_MAX + PP(pp, p_rtprio.prio)) : (PRIO_MAX + 1 + PP(pp, p_rtprio.prio)))), format_k2(PROCSIZE(pp)), |