Simplify code
This commit is contained in:
parent
5289ffb270
commit
21e13c7f52
3 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ func parseMemInfo(r io.Reader) (map[string]float64, error) {
|
|||
var (
|
||||
memInfo = map[string]float64{}
|
||||
scanner = bufio.NewScanner(r)
|
||||
re = regexp.MustCompile("\\((.*)\\)")
|
||||
re = regexp.MustCompile(`\((.*)\)`)
|
||||
)
|
||||
|
||||
for scanner.Scan() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue