Skip to content

Commit

Permalink
fix process not args output nil error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed Jan 11, 2023
1 parent 371d95f commit 5e71e38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/perfmonUtil/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,11 @@ func GetProcessInfo(client *adb.Device, pid string, packageName string, perfOpti

processInfo.FPS = &fps
}
if processInfo != nil {
processInfo.Name = status.Name
processInfo.Pid = status.Pid
}

processInfo.Name = status.Name
processInfo.Pid = status.Pid
return
}

Expand Down

0 comments on commit 5e71e38

Please sign in to comment.