diff options
author | Miles Bader <miles@gnu.org> | 1995-11-08 01:19:49 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-11-08 01:19:49 +0000 |
commit | 8d9c185666cd7e521fc55b4af567324c0dcb94f5 (patch) | |
tree | d8b447c42832f232606e8346e79c7fd9a72372e7 /libps/spec.c | |
parent | fa2352732d90560e64cce3e1f966a147cef41427 (diff) |
(ps_base_priority_getter, ps_cur_priority_getter, ps_get_base_priority,
ps_get_cur_priority):
Get this info using PSTAT_THREAD_BASIC instead of PSTAT_THREAD_SCHED.
Diffstat (limited to 'libps/spec.c')
-rw-r--r-- | libps/spec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libps/spec.c b/libps/spec.c index 45637ca6..8e87d000 100644 --- a/libps/spec.c +++ b/libps/spec.c @@ -143,18 +143,18 @@ struct ps_getter ps_rsize_getter = static int ps_get_cur_priority(proc_stat_t ps) { - return proc_stat_thread_sched_info(ps)->cur_priority; + return proc_stat_thread_basic_info(ps)->cur_priority; } struct ps_getter ps_cur_priority_getter = -{"cur_priority", PSTAT_THREAD_SCHED, (vf) ps_get_cur_priority}; +{"cur_priority", PSTAT_THREAD_BASIC, (vf) ps_get_cur_priority}; static int ps_get_base_priority(proc_stat_t ps) { - return proc_stat_thread_sched_info(ps)->base_priority; + return proc_stat_thread_basic_info(ps)->base_priority; } struct ps_getter ps_base_priority_getter = -{"base_priority", PSTAT_THREAD_SCHED, (vf) ps_get_base_priority}; +{"base_priority", PSTAT_THREAD_BASIC, (vf) ps_get_base_priority}; static int ps_get_max_priority(proc_stat_t ps) |