@@ -335,7 +335,7 @@ func (p *Process) MemoryPercentWithContext(ctx context.Context) (float32, error)
335
335
return (100 * float32 (used ) / float32 (total )), nil
336
336
}
337
337
338
- // CPU_Percent returns how many percent of the CPU time this process uses
338
+ // CPUPercent returns how many percent of the CPU time this process uses
339
339
func (p * Process ) CPUPercent () (float64 , error ) {
340
340
return p .CPUPercentWithContext (context .Background ())
341
341
}
@@ -507,7 +507,7 @@ func (p *Process) MemoryInfoEx() (*MemoryInfoExStat, error) {
507
507
return p .MemoryInfoExWithContext (context .Background ())
508
508
}
509
509
510
- // PageFaultsInfo returns the process's page fault counters.
510
+ // PageFaults returns the process's page fault counters.
511
511
func (p * Process ) PageFaults () (* PageFaultsStat , error ) {
512
512
return p .PageFaultsWithContext (context .Background ())
513
513
}
@@ -530,7 +530,7 @@ func (p *Process) Connections() ([]net.ConnectionStat, error) {
530
530
return p .ConnectionsWithContext (context .Background ())
531
531
}
532
532
533
- // Connections returns a slice of net.ConnectionStat used by the process at most `max`.
533
+ // ConnectionsMax returns a slice of net.ConnectionStat used by the process at most `max`.
534
534
func (p * Process ) ConnectionsMax (max int ) ([]net.ConnectionStat , error ) {
535
535
return p .ConnectionsMaxWithContext (context .Background (), max )
536
536
}
0 commit comments