From 307c966086fcf2b65ac168d1cf3ef335a2ed5310 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 15 Mar 1995 01:03:17 +0000 Subject: Set the PSTAT_STATE_PRIORITY and PSTAT_STATE_NICED flags when appropiate. --- libps/procstat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libps/procstat.c b/libps/procstat.c index cd9708c3..f610cce1 100644 --- a/libps/procstat.c +++ b/libps/procstat.c @@ -62,6 +62,11 @@ thread_state(thread_basic_info_t bi) break; } + if (bi->base_priority < 12) + state |= PSTAT_STATE_PRIORITY; + else if (bi->base_priority > 12) + state |= PSTAT_STATE_NICED; + if (bi->flags & TH_FLAGS_SWAPPED) state |= PSTAT_STATE_SWAPPED; -- cgit v1.2.3