diff options
| author | Olivier Certner <olce@FreeBSD.org> | 2024-09-09 21:35:16 +0200 |
|---|---|---|
| committer | Olivier Certner <olce@FreeBSD.org> | 2025-06-17 22:09:39 -0400 |
| commit | 1d8f8f3e36fafdb50613d042f5fa75d8cbcf2b8f (patch) | |
| tree | e697172b53928448af9c9a82f485d7178d6ed80c /bin | |
| parent | eebc148f25c3012b943083b48fbfc13494e9c77f (diff) | |
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
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/ps/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 2f17abdfdde2..f59e843effc1 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -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) |
