linux does not return the current syscall in wchan... just a address...

This commit is contained in:
Zane C. B-H 2019-04-14 22:35:57 -05:00
parent 6192ccbb30
commit 8e055b5dd4
1 changed files with 5 additions and 1 deletions

View File

@ -770,7 +770,11 @@ sub colorize{
$left=$left.'X';
}
$item=color($self->nextColor).$left.' '.color($self->nextColor).$proc->{wchan};
if ( $^O =~ 'linux' ){
$item=color($self->nextColor).$left.' '.color($self->nextColor).$proc->{wchan};
}else{
$item=color($self->nextColor).$left.' '.color($self->nextColor);
}
}else{
$item=color($self->nextColor).$item;