From 8d9c185666cd7e521fc55b4af567324c0dcb94f5 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 8 Nov 1995 01:19:49 +0000 Subject: (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. --- libps/spec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libps') 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) -- cgit v1.2.3