[process] fix MemoryInfo comment. remove Swap

fixes #1012
tags/v3.21.1 v3.21.1
shirou 5 years ago
parent be483f0a78
commit a9a6146c93

@ -461,7 +461,7 @@ func (p *Process) CPUAffinity() ([]int32, error) {
} }
// MemoryInfo returns generic process memory information, // MemoryInfo returns generic process memory information,
// such as RSS, VMS and Swap // such as RSS and VMS.
func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { func (p *Process) MemoryInfo() (*MemoryInfoStat, error) {
return p.MemoryInfoWithContext(context.Background()) return p.MemoryInfoWithContext(context.Background())
} }

@ -472,7 +472,7 @@ func (p *Process) CPUAffinity() ([]int32, error) {
} }
// MemoryInfo returns generic process memory information, // MemoryInfo returns generic process memory information,
// such as RSS, VMS and Swap // such as RSS and VMS.
func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { func (p *Process) MemoryInfo() (*MemoryInfoStat, error) {
return p.MemoryInfoWithContext(context.Background()) return p.MemoryInfoWithContext(context.Background())
} }

Loading…
Cancel
Save