From a9a6146c930bcc4edc92e01913bc717ce27bab9d Mon Sep 17 00:00:00 2001 From: shirou Date: Thu, 14 Jan 2021 19:00:55 +0900 Subject: [PATCH] [process] fix MemoryInfo comment. remove Swap fixes #1012 --- process/process.go | 2 +- v3/process/process.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/process/process.go b/process/process.go index 0792122..a50b4dc 100644 --- a/process/process.go +++ b/process/process.go @@ -461,7 +461,7 @@ func (p *Process) CPUAffinity() ([]int32, error) { } // MemoryInfo returns generic process memory information, -// such as RSS, VMS and Swap +// such as RSS and VMS. func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { return p.MemoryInfoWithContext(context.Background()) } diff --git a/v3/process/process.go b/v3/process/process.go index 28deb2f..6ef390a 100644 --- a/v3/process/process.go +++ b/v3/process/process.go @@ -472,7 +472,7 @@ func (p *Process) CPUAffinity() ([]int32, error) { } // MemoryInfo returns generic process memory information, -// such as RSS, VMS and Swap +// such as RSS and VMS. func (p *Process) MemoryInfo() (*MemoryInfoStat, error) { return p.MemoryInfoWithContext(context.Background()) }