Page MenuHomeFreeBSD

top(1): increased the maximum length of command shown by "-a"
ClosedPublic

Authored by daichi on Jun 25 2018, 1:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 2:11 AM
Unknown Object (File)
Sun, Jan 5, 11:29 PM
Unknown Object (File)
Dec 13 2024, 1:04 AM
Unknown Object (File)
Nov 22 2024, 4:47 PM
Unknown Object (File)
Nov 22 2024, 4:47 PM
Unknown Object (File)
Nov 22 2024, 4:47 PM
Unknown Object (File)
Nov 22 2024, 4:26 PM
Unknown Object (File)
Oct 25 2024, 7:54 PM
Subscribers

Details

Summary

top(1): increased the maximum length of command shown by "-a"

Test Plan

on A terminal:

% touch 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjj
% cat - 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjj

on B terminal (width is over 210):

% top -a

result:

original top:
  $ top -a -d 1 | grep cat
    785 daichi           1  21    0 11384K  2676K piperd  0   0:00   0.00% grep cat
    779 daichi           1  20    0 10820K  2224K ttyin   0   0:00   0.00% cat - 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789aaaaaaaaaabbbbbbbbbbc
  $

patched top:
  $ /usr/obj/usr/src/amd64.amd64/usr.bin/top/top -a -d 1 | grep cat
    804 daichi           1  20    0 11384K  2676K piperd  0   0:00   0.00% grep cat
    779 daichi           1  20    0 10820K  2224K ttyin   0   0:00   0.00% cat - 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjj
  $

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable