From e16b93a1bc54bb39344d800a014baf51575e97ec Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Thu, 22 Aug 2019 23:01:48 -0500 Subject: [PATCH] cleanup column stuff --- Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm b/Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm index b691d8e..5cfb600 100644 --- a/Proc-ProcessTable-ncps/lib/Proc/ProcessTable/ncps.pm +++ b/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' ); + push( @headers, 'CPU' ); $tb->set_column_style($header_int, pad => 0); $header_int++; - push( @headers, '%MEM' ); - $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 ){