Skip to content

Commit 9aa4e7a

Browse files
committed
fix some comments
Signed-off-by: cui fliter <[email protected]>
1 parent e045dc7 commit 9aa4e7a

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

net/net_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackSta
278278
return nil, common.ErrNotImplementedError
279279
}
280280

281-
// NetProtoCounters returns network statistics for the entire system
281+
// ProtoCounters returns network statistics for the entire system
282282
// If protocols is empty then all protocols are returned, otherwise
283283
// just the protocols in the list are returned.
284284
// Not Implemented for Darwin

net/net_freebsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackSta
115115
return nil, common.ErrNotImplementedError
116116
}
117117

118-
// NetProtoCounters returns network statistics for the entire system
118+
// ProtoCounters returns network statistics for the entire system
119119
// If protocols is empty then all protocols are returned, otherwise
120120
// just the protocols in the list are returned.
121121
// Not Implemented for FreeBSD

net/net_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var netProtocols = []string{
157157
"udplite",
158158
}
159159

160-
// NetProtoCounters returns network statistics for the entire system
160+
// ProtoCounters returns network statistics for the entire system
161161
// If protocols is empty then all protocols are returned, otherwise
162162
// just the protocols in the list are returned.
163163
// Available protocols:

net/net_openbsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackSta
164164
return nil, common.ErrNotImplementedError
165165
}
166166

167-
// NetProtoCounters returns network statistics for the entire system
167+
// ProtoCounters returns network statistics for the entire system
168168
// If protocols is empty then all protocols are returned, otherwise
169169
// just the protocols in the list are returned.
170170
// Not Implemented for OpenBSD

net/net_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func ConntrackStatsWithContext(ctx context.Context, percpu bool) ([]ConntrackSta
338338
return nil, common.ErrNotImplementedError
339339
}
340340

341-
// NetProtoCounters returns network statistics for the entire system
341+
// ProtoCounters returns network statistics for the entire system
342342
// If protocols is empty then all protocols are returned, otherwise
343343
// just the protocols in the list are returned.
344344
// Not Implemented for Windows

process/process.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (p *Process) MemoryPercentWithContext(ctx context.Context) (float32, error)
335335
return (100 * float32(used) / float32(total)), nil
336336
}
337337

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
339339
func (p *Process) CPUPercent() (float64, error) {
340340
return p.CPUPercentWithContext(context.Background())
341341
}
@@ -507,7 +507,7 @@ func (p *Process) MemoryInfoEx() (*MemoryInfoExStat, error) {
507507
return p.MemoryInfoExWithContext(context.Background())
508508
}
509509

510-
// PageFaultsInfo returns the process's page fault counters.
510+
// PageFaults returns the process's page fault counters.
511511
func (p *Process) PageFaults() (*PageFaultsStat, error) {
512512
return p.PageFaultsWithContext(context.Background())
513513
}
@@ -530,7 +530,7 @@ func (p *Process) Connections() ([]net.ConnectionStat, error) {
530530
return p.ConnectionsWithContext(context.Background())
531531
}
532532

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`.
534534
func (p *Process) ConnectionsMax(max int) ([]net.ConnectionStat, error) {
535535
return p.ConnectionsMaxWithContext(context.Background(), max)
536536
}

0 commit comments

Comments
 (0)