From owner-svn-src-stable@FreeBSD.ORG Thu Aug 27 16:15:32 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDCF5106568D; Thu, 27 Aug 2009 16:15:32 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ACA0B8FC36; Thu, 27 Aug 2009 16:15:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n7RGFW7C001121; Thu, 27 Aug 2009 16:15:32 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n7RGFW8g001119; Thu, 27 Aug 2009 16:15:32 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200908271615.n7RGFW8g001119@svn.freebsd.org> From: John Baldwin Date: Thu, 27 Aug 2009 16:15:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r196591 - stable/7/contrib/top X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2009 16:15:32 -0000 Author: jhb Date: Thu Aug 27 16:15:32 2009 New Revision: 196591 URL: http://svn.freebsd.org/changeset/base/196591 Log: MFC 196382: Explicitly line up the CPU state labels with the calculated starting column that takes into account the width of the largest CPU ID. Modified: stable/7/contrib/top/ (props changed) stable/7/contrib/top/display.c Modified: stable/7/contrib/top/display.c ============================================================================== --- stable/7/contrib/top/display.c Thu Aug 27 15:48:58 2009 (r196590) +++ stable/7/contrib/top/display.c Thu Aug 27 16:15:32 2009 (r196591) @@ -452,6 +452,7 @@ for (cpu = 0; cpu < num_cpus; cpu++) { lastline++; /* now walk thru the names and print the line */ + Move_to(cpustates_column, y_cpustates + cpu); while ((thisname = *names++) != NULL) { if (*thisname != '\0') @@ -543,6 +544,7 @@ for (cpu = 0; cpu < num_cpus; cpu++) { printf("\nCPU %d: ", cpu); lastline++; + Move_to(cpustates_column, y_cpustates + cpu); while ((thisname = *names++) != NULL) { if (*thisname != '\0')