mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-28 13:48:49 +08:00
Merge pull request #1030 from pawelz/master
Clarify the godoc of the Children function.
This commit is contained in:
commit
a44e7585f9
@ -476,7 +476,8 @@ func (p *Process) PageFaults() (*PageFaultsStat, error) {
|
||||
return p.PageFaultsWithContext(context.Background())
|
||||
}
|
||||
|
||||
// Children returns a slice of Process of the process.
|
||||
// Children returns the children of the process represented as a slice
|
||||
// of pointers to Process type.
|
||||
func (p *Process) Children() ([]*Process, error) {
|
||||
return p.ChildrenWithContext(context.Background())
|
||||
}
|
||||
|
@ -487,7 +487,8 @@ func (p *Process) PageFaults() (*PageFaultsStat, error) {
|
||||
return p.PageFaultsWithContext(context.Background())
|
||||
}
|
||||
|
||||
// Children returns a slice of Process of the process.
|
||||
// Children returns the children of the process represented as a slice
|
||||
// of pointers to Process type.
|
||||
func (p *Process) Children() ([]*Process, error) {
|
||||
return p.ChildrenWithContext(context.Background())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user