Fix bug in getMemoryUsage()

This commit is contained in:
Yang Luo
2023-04-02 10:50:41 +08:00
parent 681b086de0
commit 98a99f0215
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ func getMemoryUsage() (uint64, uint64, error) {
var m runtime.MemStats
runtime.ReadMemStats(&m)
return m.TotalAlloc, virtualMem.Total, nil
return m.Alloc, virtualMem.Total, nil
}
func GetSystemInfo() (*SystemInfo, error) {