summaryrefslogtreecommitdiff
path: root/libps/procstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/procstat.c')
-rw-r--r--libps/procstat.c5
1 files changed, 5 insertions, 0 deletions
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;