convert microseconds to seconds for Linux and more whitespace cleanup

This commit is contained in:
Zane C. B-H 2019-04-14 22:48:07 -05:00
parent 8f8f027c11
commit c0f425d801
1 changed files with 5 additions and 2 deletions

View File

@ -549,10 +549,10 @@ sub colorize{
$matched++;
}
}
$pctcpu_search_int++;
}
}
}
#check to see if it needs to search for memory percent
my $pctmem_search_array=$self->pctmemSearchGet;
@ -691,6 +691,9 @@ sub colorize{
#colorizes it
if ( $field eq 'time' ){
if ( $^O =~ 'linux' ){
$item=$item/1000000;
}
$item=$self->timeString($item);
}elsif( $field eq 'proc' ){
$item=color($self->processColorGet).$item;