diff --git a/internal/common/sleep.go b/internal/common/sleep.go index 9bed2419e..94cedfd34 100644 --- a/internal/common/sleep.go +++ b/internal/common/sleep.go @@ -6,7 +6,7 @@ import ( ) // Sleep awaits for provided interval. -// Can be interrupted by context cancelation. +// Can be interrupted by context cancellation. func Sleep(ctx context.Context, interval time.Duration) error { timer := time.NewTimer(interval) select { diff --git a/net/net_linux.go b/net/net_linux.go index 6e8ce67fb..20ca5470a 100644 --- a/net/net_linux.go +++ b/net/net_linux.go @@ -471,7 +471,7 @@ func connectionsPidMaxWithoutUidsWithContext(ctx context.Context, kind string, p } } if err != nil { - return nil, fmt.Errorf("cound not get pid(s), %d: %w", pid, err) + return nil, fmt.Errorf("could not get pid(s), %d: %w", pid, err) } return statsFromInodesWithContext(ctx, root, pid, tmap, inodes, skipUids) }