diff options
author | kib <kib@FreeBSD.org> | 2016-02-09 18:35:37 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-02-09 18:35:37 +0000 |
commit | 6ea080df6a2f64367f886f1030ff47ed0d8f709f (patch) | |
tree | 980daad934abb1489220794b17d26410358eb934 /usr.bin/top | |
parent | f8539e89c54251f4057acdc1790c53d4f20e43cb (diff) | |
download | FreeBSD-src-6ea080df6a2f64367f886f1030ff47ed0d8f709f.zip FreeBSD-src-6ea080df6a2f64367f886f1030ff47ed0d8f709f.tar.gz |
Rename variable to reflect the condition.
Suggested by: jhb
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin/top')
-rw-r--r-- | usr.bin/top/machine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 0ae2ae7..6c4cee7 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -1155,12 +1155,12 @@ getsysctl(const char *name, void *ptr, size_t len) static const char * format_nice(const struct kinfo_proc *pp) { - const char *fifo, *kthread; + const char *fifo, *kproc; int rtpri; static char nicebuf[4 + 1]; fifo = PRI_NEED_RR(pp->ki_pri.pri_class) ? "" : "F"; - kthread = (pp->ki_flag & P_KPROC) ? "k" : ""; + kproc = (pp->ki_flag & P_KPROC) ? "k" : ""; switch (PRI_BASE(pp->ki_pri.pri_class)) { case PRI_ITHD: return ("-"); @@ -1188,7 +1188,7 @@ format_nice(const struct kinfo_proc *pp) rtpri = ((pp->ki_flag & P_KPROC) ? pp->ki_pri.pri_native : pp->ki_pri.pri_user) - PRI_MIN_REALTIME; snprintf(nicebuf, sizeof(nicebuf), "%sr%d%s", - kthread, rtpri, fifo); + kproc, rtpri, fifo); break; case PRI_TIMESHARE: if (pp->ki_flag & P_KPROC) @@ -1200,7 +1200,7 @@ format_nice(const struct kinfo_proc *pp) rtpri = ((pp->ki_flag & P_KPROC) ? pp->ki_pri.pri_native : pp->ki_pri.pri_user) - PRI_MIN_IDLE; snprintf(nicebuf, sizeof(nicebuf), "%si%d%s", - kthread, rtpri, fifo); + kproc, rtpri, fifo); break; default: return ("?"); |