From eae1ea0f445235613f3138bc042b3575086f2caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=A5=E5=88=A9=E5=A5=A5=E5=97=B7=E5=97=B7=E5=8F=AB?= Date: Wed, 29 Mar 2023 22:37:02 +0800 Subject: [PATCH] final fix vss rss --- src/perfmonUtil/process.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/perfmonUtil/process.go b/src/perfmonUtil/process.go index e099e8a..26994a6 100644 --- a/src/perfmonUtil/process.go +++ b/src/perfmonUtil/process.go @@ -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,