Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zizhou Wang committed Jan 27, 2022
1 parent ed9bad8 commit 3d7b612
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface ProcessFields {
}

export interface ProcessSelf extends ProcessFields {
parent: ProcessSelf;
parent: ProcessFields;
session_leader: ProcessFields;
entry_leader: ProcessFields;
group_leader: ProcessFields;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export class ProcessImpl implements Process {

isUserEntered() {
const event = this.getDetails();
const { tty, group_leader: groupLeader, parent } = event.process;
const { tty } = event.process;

return !!tty && groupLeader && groupLeader.pid !== parent.group_leader.pid;
return !!tty && process.pid !== event.process.group_leader.pid;
}

getMaxAlertLevel() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const DEFAULT_COLUMNS: ColumnHeaderOptions[] = [
},
{
columnHeaderType: 'not-filtered',
id: 'process.session_leader.pid',
id: 'process.entry_leader.pid',
initialWidth: 180,
isSortable: true,
},
Expand Down

0 comments on commit 3d7b612

Please sign in to comment.