mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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. On systems with > 10 CPUs the labels for the first 10 CPUs were not lined up properly otherwise. Approved by: re (kib)
This commit is contained in:
parent
9fdef7744d
commit
46208d409c
1 changed files with 2 additions and 0 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue