don't show cpu number on single processor machines for the threads display too.
This commit is contained in:
parent
d879c8360a
commit
03f11859f6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: m_netbsd15.c,v 1.33 2008/01/06 06:55:08 yamt Exp $ */
|
||||
/* $NetBSD: m_netbsd15.c,v 1.34 2008/01/06 19:59:22 christos Exp $ */
|
||||
|
||||
/*
|
||||
* top - a top users display for Unix
|
||||
|
@ -37,12 +37,12 @@
|
|||
* Andrew Doran <ad@NetBSD.org>
|
||||
*
|
||||
*
|
||||
* $Id: m_netbsd15.c,v 1.33 2008/01/06 06:55:08 yamt Exp $
|
||||
* $Id: m_netbsd15.c,v 1.34 2008/01/06 19:59:22 christos Exp $
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: m_netbsd15.c,v 1.33 2008/01/06 06:55:08 yamt Exp $");
|
||||
__RCSID("$NetBSD: m_netbsd15.c,v 1.34 2008/01/06 19:59:22 christos Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -885,7 +885,7 @@ format_next_lwp(caddr_t handle, char *(*get_userid)(int))
|
|||
|
||||
#ifdef KI_NOCPU
|
||||
/* Post-1.5 change: add CPU number if appropriate */
|
||||
if (pl->l_cpuid != KI_NOCPU) {
|
||||
if (pp->p_cpuid != KI_NOCPU && ncpu > 1) {
|
||||
switch (pl->l_stat) {
|
||||
case LSONPROC:
|
||||
case LSRUN:
|
||||
|
|
Loading…
Reference in New Issue