more whitespace cleanup

This commit is contained in:
Zane C. B-H 2019-04-14 22:41:41 -05:00
parent 944816751d
commit 7c0d4c3f76
1 changed files with 20 additions and 20 deletions

View File

@ -661,7 +661,7 @@ sub colorize{
#increment this so it will always be off by one for this proc, meaning it is ignored
$required_hits++;
}
if ( $required_hits == $hits ){
$show=1;
}
@ -670,7 +670,7 @@ sub colorize{
if (
( $show )
){
foreach my $field ( @{$fields} ){
my $item='';
if ( defined( $proc->{$field} ) ){
@ -681,14 +681,14 @@ sub colorize{
if ( $field eq 'start' ){
$item=$self->startString($item);
}
if (
( $field eq 'uid' ) &&
$self->{resolveUser}
){
$item=getpwuid($item);
}
#colorizes it
if ( $field eq 'time' ){
$item=$self->timeString($item);
@ -818,7 +818,7 @@ sub colorize{
$proc_column_int++;
$colored_int++;
}
return $tb->load( @colored );
}
@ -841,7 +841,7 @@ sub fields{
my %toReturn;
while( defined($fields[$int]) ){
$toReturn{$fields[$int]}=1;
$int++;
}
@ -878,7 +878,7 @@ sub nextColor{
$self->errorblank;
my $color;
if( defined( $self->{colors}[ $self->{nextColor} ] ) ){
$color=$self->{colors}[ $self->{nextColor} ];
$self->{nextColor}++;
@ -995,9 +995,9 @@ sub pctcpuSearchSetString{
$self->warn;
return undef;
}
}
$self->{pctcpu_search}=\@pctcpu_search_array;
}
@ -1074,9 +1074,9 @@ sub pctmemSearchSetString{
$self->warn;
return undef;
}
}
$self->{pctmem_search}=\@pctmem_search_array;
}
@ -1142,7 +1142,7 @@ sub procSearchSet{
$self->errorblank;
$self->{proc_search}=$proc_search;
return 1;
}
@ -1189,9 +1189,9 @@ sub selfIgnoreSet{
if ( ! defined( $self_ignore ) ){
$self_ignore='2';
}
$self->{self_ignore}=$self_ignore;
return 1;
}
@ -1214,7 +1214,7 @@ sub startString{
$cyear += 1900;
$mon += 1;
$cmon += 1;
#find the most common one and return it
if ( $year ne $cyear ){
return $year.sprintf('%02d', $mon).sprintf('%02d', $mday).'-'.sprintf('%02d', $hour).':'.sprintf('%02d', $min);
@ -1353,9 +1353,9 @@ sub timeSearchSetString{
$self->warn;
return undef;
}
}
$self->{time_search}=\@time_search_array;
}
@ -1394,7 +1394,7 @@ sub timeString{
$hours=~s/\..*//;
$minutes=~s/\..*//;
$seconds=sprintf('%.f',$seconds);
#this will be returned
my $toReturn='';
@ -1418,8 +1418,8 @@ sub timeString{
}
$toReturn=$toReturn.color( $colors->[0] ).$seconds;
return $toReturn;
return $toReturn;
}
=head1 userSearchGet