Skip to content

Commit

Permalink
final fix vss rss
Browse files Browse the repository at this point in the history
  • Loading branch information
aoliaoaoaojiao committed Mar 29, 2023
1 parent 7b1e758 commit eae1ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/perfmonUtil/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ func getProcMem(client *adb.Device) *entity.ProcessInfo {
if err != nil {
processInfo.Error = append(processInfo.Error, err.Error())
}
vSize, _ := strconv.Atoi(status.VmSize)
pRss, _ := strconv.Atoi(status.VmRSS)
vSize, _ := strconv.Atoi(strings.TrimSpace(strings.Split(status.VmSize," ")[0]))
pRss, _ := strconv.Atoi(strings.TrimSpace(strings.Split(status.VmRSS," ")[0]))
processInfo.MemInfo = &entity.ProcMemInfo{
VmSize: vSize,
PhyRSS: pRss,
Expand Down

0 comments on commit eae1ea0

Please sign in to comment.