summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ps/print.c18
-rw-r--r--bin/ps/ps.13
2 files changed, 11 insertions, 10 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 3fdc6d9db9388..98a0142031d43 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -704,17 +704,17 @@ priorityr(KINFO *k, VARENT *ve __unused)
class = lpri->pri_class;
level = lpri->pri_level;
switch (class) {
- case PRI_ITHD:
- asprintf(&str, "intr:%u", level);
+ case RTP_PRIO_REALTIME:
+ /* alias for PRI_REALTIME */
+ asprintf(&str, "real:%u", level - PRI_MIN_REALTIME);
break;
- case PRI_REALTIME:
- asprintf(&str, "real:%u", level);
+ case RTP_PRIO_NORMAL:
+ /* alias for PRI_TIMESHARE */
+ asprintf(&str, "normal:%u", level - PRI_MIN_TIMESHARE);
break;
- case PRI_TIMESHARE:
- asprintf(&str, "normal");
- break;
- case PRI_IDLE:
- asprintf(&str, "idle:%u", level);
+ case RTP_PRIO_IDLE:
+ /* alias for PRI_IDLE */
+ asprintf(&str, "idle:%u", level - PRI_MIN_IDLE);
break;
default:
asprintf(&str, "%u:%u", class, level);
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index dc8eddfb93dc3..d3d279d76d43e 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -648,7 +648,8 @@ group name (from rgid)
.It Cm rss
resident set size
.It Cm rtprio
-realtime priority (101 = not a realtime process)
+realtime priority (see
+.Xr rtprio 1)
.It Cm ruid
real user ID
.It Cm ruser