Remove unnecessary conversions
This commit is contained in:
parent
21e13c7f52
commit
694294baf5
9 changed files with 13 additions and 14 deletions
|
|
@ -85,7 +85,7 @@ func parseSockStats(r io.Reader, fileName string) (map[string]map[string]string,
|
|||
)
|
||||
|
||||
for scanner.Scan() {
|
||||
line := strings.Split(string(scanner.Text()), " ")
|
||||
line := strings.Split(scanner.Text(), " ")
|
||||
// Remove trailing ':'.
|
||||
protocol := line[0][:len(line[0])-1]
|
||||
sockStat[protocol] = map[string]string{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue