diff options
author | Garance A Drosehn <gad@FreeBSD.org> | 2004-03-28 02:13:31 +0000 |
---|---|---|
committer | Garance A Drosehn <gad@FreeBSD.org> | 2004-03-28 02:13:31 +0000 |
commit | 3998d22271359beb67d0fa13fb31587de0b69cd9 (patch) | |
tree | 0a3b9a0624aec41f0be373bf5dec1f842114ba6a /bin/ps/print.c | |
parent | 13ea8563af444e3d1c3ef73ab24c8f7593e946d8 (diff) | |
download | src-3998d22271359beb67d0fa13fb31587de0b69cd9.tar.gz src-3998d22271359beb67d0fa13fb31587de0b69cd9.zip |
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)
Notes
Notes:
svn path=/head/; revision=127512
Diffstat (limited to 'bin/ps/print.c')
-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 7e0f816b9716..ab25e77751e3 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) { |