Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107606409
D25266.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D25266.diff
View Options
Index: head/bin/ps/print.c
===================================================================
--- head/bin/ps/print.c
+++ head/bin/ps/print.c
@@ -704,17 +704,17 @@
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);
Index: head/bin/ps/ps.1
===================================================================
--- head/bin/ps/ps.1
+++ head/bin/ps/ps.1
@@ -648,7 +648,8 @@
.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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 1:59 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15839343
Default Alt Text
D25266.diff (1 KB)
Attached To
Mode
D25266: bin/ps: Make the rtprio option actually show realtime priorities
Attached
Detach File
Event Timeline
Log In to Comment