svn commit: r196591 - stable/7/contrib/top
John Baldwin
jhb at FreeBSD.org
Thu Aug 27 16:15:32 UTC 2009
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')
More information about the svn-src-stable-7
mailing list