=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/machine.c,v retrieving revision 1.49 retrieving revision 1.50 diff -c -r1.49 -r1.50 *** src/usr.bin/top/machine.c 2005/06/17 09:40:48 1.49 --- src/usr.bin/top/machine.c 2005/12/04 23:10:06 1.50 *************** *** 1,4 **** ! /* $OpenBSD: machine.c,v 1.49 2005/06/17 09:40:48 markus Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert --- 1,4 ---- ! /* $OpenBSD: machine.c,v 1.50 2005/12/04 23:10:06 tedu Exp $ */ /*- * Copyright (c) 1994 Thorsten Lockert *************** *** 342,348 **** get_process_info(struct system_info *si, struct process_select *sel, int (*compare) (const void *, const void *)) { ! int show_idle, show_system, show_uid, show_pid; int total_procs, active_procs; struct kinfo_proc2 **prefp, *pp; --- 342,348 ---- get_process_info(struct system_info *si, struct process_select *sel, int (*compare) (const void *, const void *)) { ! int show_idle, show_system, show_threads, show_uid, show_pid; int total_procs, active_procs; struct kinfo_proc2 **prefp, *pp; *************** *** 363,368 **** --- 363,369 ---- /* set up flags which define what we are going to select */ show_idle = sel->idle; show_system = sel->system; + show_threads = sel->threads; show_uid = sel->uid != (uid_t)-1; show_pid = sel->pid != (pid_t)-1; *************** *** 379,385 **** * processes---these get ignored unless show_sysprocs is set. */ if (pp->p_stat != 0 && ! (show_system || (pp->p_flag & P_SYSTEM) == 0)) { total_procs++; process_states[(unsigned char) pp->p_stat]++; if (pp->p_stat != SZOMB && --- 380,387 ---- * processes---these get ignored unless show_sysprocs is set. */ if (pp->p_stat != 0 && ! (show_system || (pp->p_flag & P_SYSTEM) == 0) && ! (show_threads || (pp->p_flag & P_THREAD) == 0)) { total_procs++; process_states[(unsigned char) pp->p_stat]++; if (pp->p_stat != SZOMB &&