diff options
author | will <will@FreeBSD.org> | 2001-03-12 05:53:54 +0000 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-03-12 05:53:54 +0000 |
commit | fc79ba5be08bc18c7b9f6115f9c5efa25a0f4fb6 (patch) | |
tree | 09977652ebf5bc15ca199eb2a61079a0d8659e70 /usr.bin | |
parent | 68e03855acb4eb79c4eef89e58fcd30eba0abe18 (diff) | |
download | FreeBSD-src-fc79ba5be08bc18c7b9f6115f9c5efa25a0f4fb6.zip FreeBSD-src-fc79ba5be08bc18c7b9f6115f9c5efa25a0f4fb6.tar.gz |
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>
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/top/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c index 7525589..33c621e 100644 --- a/usr.bin/top/machine.c +++ b/usr.bin/top/machine.c @@ -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) |