ps(1), top(1): Priority: Let 0 be the first timesharing level

Change the origin from PZERO to PUSER.

Doing so allows users to immediately detect if some thread is running
under a high priority (kernel or realtime) or under a low one
(timesharing or idle).

MFC after:      1 month
Event:          Kitchener-Waterloo Hackathon 202506
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Olivier Certner
2024-09-09 21:35:16 +02:00
parent eebc148f25
commit 1d8f8f3e36
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ state(KINFO *k, VARENT *ve __unused)
return (buf);
}
#define scalepri(x) ((x) - PZERO)
#define scalepri(x) ((x) - PUSER)
char *
pri(KINFO *k, VARENT *ve __unused)