mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Fix top(1) display for SMP systems where the username is longer than 14
characters. This should avoid unattractive wrapping for people who are stuck in an 80x24 screen. :-) PR: 22270 Submitted by: William Carrel <williamc@go2net.com>
This commit is contained in:
parent
e95f56120b
commit
9e13809564
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74142
@ -219,7 +219,9 @@ struct statics *statics;
|
||||
}
|
||||
if (namelength < 8)
|
||||
namelength = 8;
|
||||
if (namelength > 15)
|
||||
if (smpmode && namelength > 13)
|
||||
namelength = 13;
|
||||
else if (namelength > 15)
|
||||
namelength = 15;
|
||||
|
||||
if ((kd = kvm_open("/dev/null", "/dev/null", "/dev/null", O_RDONLY, "kvm_open")) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user