Remove unnecessary conversions
This commit is contained in:
parent
21e13c7f52
commit
694294baf5
9 changed files with 13 additions and 14 deletions
|
|
@ -76,7 +76,7 @@ func parseFileFDStats(r io.Reader, fileName string) (map[string]string, error) {
|
|||
var scanner = bufio.NewScanner(r)
|
||||
scanner.Scan()
|
||||
// The file-nr proc file is separated by tabs, not spaces.
|
||||
line := strings.Split(string(scanner.Text()), "\u0009")
|
||||
line := strings.Split(scanner.Text(), "\u0009")
|
||||
var fileFDStat = map[string]string{}
|
||||
// The file-nr proc is only 1 line with 3 values.
|
||||
fileFDStat["allocated"] = line[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue