@@ -40,7 +40,7 @@ const ( // Conntrack Column numbers
40
40
ctSEARCH_RESTART
41
41
)
42
42
43
- // NetIOCounters returnes network I/O statistics for every network
43
+ // NetIOCounters returns network I/O statistics for every network
44
44
// interface installed on the system. If pernic argument is false,
45
45
// return only sum of all information (which name is 'all'). If true,
46
46
// every network interface installed on the system is returned
@@ -188,7 +188,7 @@ func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoC
188
188
line := lines [i ]
189
189
r := strings .IndexRune (line , ':' )
190
190
if r == - 1 {
191
- return nil , errors .New (filename + " is not fomatted correctly, expected ':'." )
191
+ return nil , errors .New (filename + " is not formatted correctly, expected ':'." )
192
192
}
193
193
proto := strings .ToLower (line [:r ])
194
194
if ! protos [proto ] {
@@ -204,7 +204,7 @@ func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoC
204
204
i ++
205
205
statValues := strings .Split (lines [i ][r + 2 :], " " )
206
206
if len (statNames ) != len (statValues ) {
207
- return nil , errors .New (filename + " is not fomatted correctly, expected same number of columns." )
207
+ return nil , errors .New (filename + " is not formatted correctly, expected same number of columns." )
208
208
}
209
209
stat := ProtoCountersStat {
210
210
Protocol : proto ,
@@ -539,7 +539,7 @@ func statsFromInodes(root string, pid int32, tmap []netConnectionKindType, inode
539
539
return ret , nil
540
540
}
541
541
542
- // getProcInodes returnes fd of the pid.
542
+ // getProcInodes returns fd of the pid.
543
543
func getProcInodes (root string , pid int32 , max int ) (map [string ][]inodeMap , error ) {
544
544
ret := make (map [string ][]inodeMap )
545
545
0 commit comments