diff options
author | gad <gad@FreeBSD.org> | 2004-03-28 02:13:31 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-28 02:13:31 +0000 |
commit | c148ed96ea64a200e4c71f13837647dc4613d06c (patch) | |
tree | 0a3b9a0624aec41f0be373bf5dec1f842114ba6a /bin/ps | |
parent | 6ba51a746cd64342a35fa9e5b5613c2f9a163107 (diff) | |
download | FreeBSD-src-c148ed96ea64a200e4c71f13837647dc4613d06c.zip FreeBSD-src-c148ed96ea64a200e4c71f13837647dc4613d06c.tar.gz |
Fix `-o rtprio' so it prints the correct value.
PR: bin/59417
Submitted by: Jan Willem Knopper
This fix by: bde (in the audit-trail of the PR)
Diffstat (limited to 'bin/ps')
-rw-r--r-- | bin/ps/print.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 7e0f816..ab25e77 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -653,9 +653,9 @@ priorityr(KINFO *k, VARENT *ve) struct priority *lpri; char str[8]; unsigned class, level; - + v = ve->var; - lpri = (struct priority *) ((char *)k + v->off); + lpri = &k->ki_p->ki_pri; class = lpri->pri_class; level = lpri->pri_level; switch (class) { |