From 595c8b2ff9bdda593eadd5f08bf3b6a6c1b56efd Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 21 Apr 1997 13:53:47 +0000 Subject: [PATCH] Long usernames fixes --- usr.bin/top/machine.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index ef60aa9f8e4..57d3175495c 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -17,7 +17,7 @@ * Steven Wallace * Wolfram Schneider * - * $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