Skip to content

Commit

Permalink
fix PID is null bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed Sep 22, 2023
1 parent f7a2a92 commit c3aef56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/perfmonUtil/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ var Pid = ""
var IsForce = false

func UpdatePIDAndPackageCurrentActivity(client *adb.Device, sign context.Context) {
Pid, _ = GetPidOnPackageName(client, PackageName)
timer := time.Tick(time.Duration(int(IntervalTime * float64(time.Second))))
go func() {
for {
Expand Down

0 comments on commit c3aef56

Please sign in to comment.