mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Use essentially the same formatting of the CPU stats percentages as in
vmstat so that they never coalesce. Both iostat and vmstat need larger fixes to prevent wide fields from unnecessarily messing up the alignment of all subsequent fields. PR: 41674 MFC-after: 3 days
This commit is contained in:
parent
2757068e4f
commit
8fa6b8a8b6
1 changed files with 1 additions and 1 deletions
|
|
@ -727,7 +727,7 @@ cpustats(void)
|
|||
for (state = 0; state < CPUSTATES; ++state)
|
||||
time += cur.cp_time[state];
|
||||
for (state = 0; state < CPUSTATES; ++state)
|
||||
printf("%3.0f",
|
||||
printf(" %2.0f",
|
||||
rint(100. * cur.cp_time[state] / (time ? time : 1)));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue