Page MenuHomeFreeBSD

usr.bin/top: fix displaying load average for loads of at least 100
ClosedPublic

Authored by pkubaj on May 21 2024, 10:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 20, 10:35 PM
Unknown Object (File)
Sat, May 25, 5:30 PM
Unknown Object (File)
Fri, May 24, 6:06 PM
Unknown Object (File)
May 23 2024, 2:22 AM
Unknown Object (File)
May 22 2024, 2:50 PM
Unknown Object (File)
May 21 2024, 9:49 PM
Subscribers
None

Details

Summary

After top registers load average of at least 100 which then gets reduced to
below 100, there are left stray digits.
Supporting load over 100 requires increasing the width only to 6, but since
we support over 1000 CPU's now, let's increase it to 7.

Test Plan

Run top while running with load over 100 (or even better, over 1000) which
then gets reduced to below 100.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 57815
Build 54703: arc lint + arc unit

Event Timeline

pkubaj created this revision.

So for mostly idle machines, this increases the spacing between ':', ',', and values. Perhaps doing it conditionally is worse because the placement of the values would blink.

This revision is now accepted and ready to land.May 21 2024, 9:13 PM