Browse Source

cleanup column stuff

master
Zane C. B-H 2 years ago
parent
commit
e16b93a1bc
  1. 12
      Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm

12
Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm

@ -124,7 +124,7 @@ sub run{
){
$have_pri=1;
}
my $physmem;
if ( $^O =~ /bsd/ ){
$physmem=`/sbin/sysctl -a hw.physmem`;
@ -146,14 +146,14 @@ sub run{
$tb->set_column_style($header_int, pad => 0); $header_int++;
push( @headers, 'PID' );
$tb->set_column_style($header_int, pad => 1); $header_int++;
push( @headers, '%CPU' );
$tb->set_column_style($header_int, pad => 0); $header_int++;
push( @headers, '%MEM' );
push( @headers, 'CPU' );
$tb->set_column_style($header_int, pad => 0); $header_int++;
push( @headers, 'VSZ' );
push( @headers, 'MEM' );
$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++;
push( @headers, 'RSS' );
$tb->set_column_style($header_int, pad => 1); $header_int++;
push( @headers, 'Info' );
# add nice if needed
if ( $have_nice ){

Loading…
Cancel
Save