cleanup column stuff
This commit is contained in:
parent
3340354397
commit
e16b93a1bc
|
@ -124,7 +124,7 @@ sub run{
|
||||||
){
|
){
|
||||||
$have_pri=1;
|
$have_pri=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $physmem;
|
my $physmem;
|
||||||
if ( $^O =~ /bsd/ ){
|
if ( $^O =~ /bsd/ ){
|
||||||
$physmem=`/sbin/sysctl -a hw.physmem`;
|
$physmem=`/sbin/sysctl -a hw.physmem`;
|
||||||
|
@ -146,14 +146,14 @@ sub run{
|
||||||
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
||||||
push( @headers, 'PID' );
|
push( @headers, 'PID' );
|
||||||
$tb->set_column_style($header_int, pad => 1); $header_int++;
|
$tb->set_column_style($header_int, pad => 1); $header_int++;
|
||||||
push( @headers, '%CPU' );
|
push( @headers, 'CPU' );
|
||||||
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
||||||
push( @headers, '%MEM' );
|
push( @headers, 'MEM' );
|
||||||
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
|
||||||
push( @headers, 'VSZ' );
|
|
||||||
$tb->set_column_style($header_int, pad => 1); $header_int++;
|
$tb->set_column_style($header_int, pad => 1); $header_int++;
|
||||||
push( @headers, 'RSS' );
|
push( @headers, 'VSZ' );
|
||||||
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
$tb->set_column_style($header_int, pad => 0); $header_int++;
|
||||||
|
push( @headers, 'RSS' );
|
||||||
|
$tb->set_column_style($header_int, pad => 1); $header_int++;
|
||||||
push( @headers, 'Info' );
|
push( @headers, 'Info' );
|
||||||
# add nice if needed
|
# add nice if needed
|
||||||
if ( $have_nice ){
|
if ( $have_nice ){
|
||||||
|
|
Loading…
Reference in New Issue