Page MenuHomeFreeBSD

Improve systat -swap readability and fix display issues
ClosedPublic

Authored by ota_j.email.ne.jp on Dec 7 2020, 12:24 AM.
Tags
None
Referenced Files
F108807534: D27496.diff
Tue, Jan 28, 3:47 AM
F108755241: D27496.id80741.diff
Mon, Jan 27, 5:59 PM
F108755207: D27496.id80422.diff
Mon, Jan 27, 5:58 PM
F108753714: D27496.id80398.diff
Mon, Jan 27, 5:43 PM
F108710228: D27496.id80399.diff
Mon, Jan 27, 11:26 AM
F108708758: D27496.id80397.diff
Mon, Jan 27, 11:14 AM
F108708251: D27496.id83954.diff
Mon, Jan 27, 11:10 AM
Unknown Object (File)
Fri, Jan 24, 2:05 AM

Details

Summary

Improve size readability.
Preserve more space for swap devise names.
Prevent line overflow with long devise name.
Don't draw a bar when swap is not used at all.
Simplify and optimize code.
Change the label to end at end of 100%.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251655

Test Plan

systat -swap

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35429
Build 32343: arc lint + arc unit

Event Timeline

Fix off-by-one error over 60% and stop extra +1 for percentage.

Fix when the number of swap devise is 1.

bcr added a subscriber: bcr.

OK from manpages.

Builds, works and looks OK.

This revision is now accepted and ready to land.Feb 15 2021, 7:22 PM
This revision was automatically updated to reflect the committed changes.