mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-01 13:48:52 +08:00
fix /proc/pid/statm parsing
This commit is contained in:
parent
7dc4b97c4f
commit
14a4d64f47
@ -386,8 +386,8 @@ func (p *Process) fillFromStatm() (*MemoryInfoStat, *MemoryInfoExStat, error) {
|
||||
}
|
||||
fields := strings.Split(string(contents), " ")
|
||||
|
||||
rss := mustParseUint64(fields[0]) * PageSize
|
||||
vms := mustParseUint64(fields[1]) * PageSize
|
||||
vms := mustParseUint64(fields[0]) * PageSize
|
||||
rss := mustParseUint64(fields[1]) * PageSize
|
||||
memInfo := &MemoryInfoStat{
|
||||
RSS: rss,
|
||||
VMS: vms,
|
||||
|
Loading…
x
Reference in New Issue
Block a user