Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit eae1ea0

Browse files
final fix vss rss
1 parent 7b1e758 commit eae1ea0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/perfmonUtil/process.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ func getProcMem(client *adb.Device) *entity.ProcessInfo {
575575
if err != nil {
576576
processInfo.Error = append(processInfo.Error, err.Error())
577577
}
578-
vSize, _ := strconv.Atoi(status.VmSize)
579-
pRss, _ := strconv.Atoi(status.VmRSS)
578+
vSize, _ := strconv.Atoi(strings.TrimSpace(strings.Split(status.VmSize," ")[0]))
579+
pRss, _ := strconv.Atoi(strings.TrimSpace(strings.Split(status.VmRSS," ")[0]))
580580
processInfo.MemInfo = &entity.ProcMemInfo{
581581
VmSize: vSize,
582582
PhyRSS: pRss,

0 commit comments

Comments
 (0)