Long usernames fixes

This commit is contained in:
Andrey A. Chernov 1997-04-21 13:53:47 +00:00
parent 447e1358b6
commit 595c8b2ff9

View File

@ -17,7 +17,7 @@
* Steven Wallace <swallace@freebsd.org>
* Wolfram Schneider <wosch@FreeBSD.org>
*
* $Id: machine.c,v 1.1.1.1 1997/03/23 18:55:20 joerg Exp $
* $Id: machine.c,v 1.2 1997/04/19 20:28:50 peter Exp $
*/
@ -122,22 +122,22 @@ static struct nlist nlst[] = {
#ifdef P_IDLEPROC /* FreeBSD SMP kernel */
static char header[] =
" PID X PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND";
" PID X PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND";
/* 0123456 -- field to fill in starts at header+6 */
#define UNAME_START 6
#define Proc_format \
"%5d %-8.8s%3d%3d%7s %6s %-6.6s%1x%7s %5.2f%% %5.2f%% %.14s"
"%5d %-16.16s%3d%3d%7s %6s %-6.6s%1x%7s %5.2f%% %5.2f%% %.6s"
#else /* Standard kernel */
static char header[] =
" PID X PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND";
" PID X PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND";
/* 0123456 -- field to fill in starts at header+6 */
#define UNAME_START 6
#define Proc_format \
"%5d %-8.8s%3d %3d%7s %6s %-6.6s%7s %5.2f%% %5.2f%% %.14s"
"%5d %-16.16s%3d %3d%7s %6s %-6.6s%7s %5.2f%% %5.2f%% %.6s"
#endif