Skip to content

Commit db23986

Browse files
chore: fix some minor issues in the comments
Signed-off-by: shandongzhejiang <[email protected]>
1 parent f48b638 commit db23986

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

host/host.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func InfoWithContext(ctx context.Context) (*InfoStat, error) {
8686

8787
ret.KernelArch, err = KernelArch()
8888
if err != nil && !errors.Is(err, common.ErrNotImplementedError) {
89-
return nil, fmt.Errorf("getting kernel archictecture: %w", err)
89+
return nil, fmt.Errorf("getting kernel architecture: %w", err)
9090
}
9191

9292
ret.VirtualizationSystem, ret.VirtualizationRole, err = VirtualizationWithContext(ctx)

host/host_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func PlatformInformationWithContext(ctx context.Context) (platform, family, vers
257257
version = getSuseVersion(contents)
258258
platform = getSusePlatform(contents)
259259
}
260-
// TODO: slackware detecion
260+
// TODO: slackware detection
261261
case common.PathExistsWithContents(common.HostEtcWithContext(ctx, "arch-release")):
262262
platform = "arch"
263263
version = lsb.Release

net/net.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func getIOCountersAll(n []IOCountersStat) []IOCountersStat {
273273
return []IOCountersStat{r}
274274
}
275275

276-
// NetIOCounters returns network I/O statistics for every network
276+
// IOCounters returns network I/O statistics for every network
277277
// interface installed on the system. If pernic argument is false,
278278
// return only sum of all information (which name is 'all'). If true,
279279
// every network interface installed on the system is returned
@@ -296,7 +296,7 @@ func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
296296
return ProtoCountersWithContext(context.Background(), protocols)
297297
}
298298

299-
// NetFilterCounters returns iptables conntrack statistics
299+
// FilterCounters returns iptables conntrack statistics
300300
// the currently in use conntrack count and the max.
301301
// If the file does not exist or is invalid it will return nil.
302302
func FilterCounters() ([]FilterStat, error) {
@@ -349,7 +349,7 @@ func ConnectionsPidMax(kind string, pid int32, maxConn int) ([]ConnectionStat, e
349349

350350
// Pids retunres all pids.
351351
// Note: this is a copy of process_linux.Pids()
352-
// FIXME: Import process occures import cycle.
352+
// FIXME: Import process occurs import cycle.
353353
// move to common made other platform breaking. Need consider.
354354
func Pids() ([]int32, error) {
355355
return PidsWithContext(context.Background())

net/net_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ func PidsWithContext(ctx context.Context) ([]int32, error) {
540540

541541
// Note: the following is based off process_linux structs and methods
542542
// we need these to fetch the owner of a process ID
543-
// FIXME: Import process occures import cycle.
543+
// FIXME: Import process occurs import cycle.
544544
// see remarks on pids()
545545
type process struct {
546546
Pid int32 `json:"pid"`

0 commit comments

Comments
 (0)