Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Adapt to new process key
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Mar 30, 2023
1 parent 6bd73e4 commit ad6e5f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export interface NetqueryConnection {
exit_node?: string;
extra_data?: {
pid?: number;
processCreatedAt?: number;
cname?: string[];
blockedByLists?: string[];
blockedEntities?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export interface Process extends Record {
UserName: string;
UserHome: string;
Pid: number;
CreatedAt: number;
ParentPid: number;
ParentCreatedAt: number;
Path: string;
ExecName: string;
Cwd: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class SfngNetqueryConnectionDetailsComponent implements OnInit, OnDestroy
this.updateConnectionNotice();

if (this.conn?.extra_data?.pid !== undefined) {
this.portapi.get<Process>(`network:tree/${this.conn.extra_data.pid}`)
this.portapi.get<Process>(`network:tree/${this.conn.extra_data.pid}-${this.conn.extra_data.processCreatedAt}`)
.subscribe({
next: p => {
this.process = p;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ProcessDetailsDialogComponent {

openParent() {
if (!!this.process.ParentPid) {
this.portapi.get<Process>(`network:tree/${this.process.ParentPid}`)
this.portapi.get<Process>(`network:tree/${this.process.ParentPid}-${this.process.ParentCreatedAt}`)
.subscribe(process => {
this.process = {
...process,
Expand Down

0 comments on commit ad6e5f4

Please sign in to comment.