Page MenuHomeFreeBSD

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

Authored by pkubaj on Tue, May 21, 10:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 5:30 PM
Unknown Object (File)
Fri, May 24, 6:06 PM
Unknown Object (File)
Thu, May 23, 2:22 AM
Unknown Object (File)
Wed, May 22, 2:50 PM
Unknown Object (File)
Tue, May 21, 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 Not Applicable
Unit
Tests Not Applicable

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.Tue, May 21, 9:13 PM