go fmt ./...
This commit is contained in:
parent
7659b08a40
commit
09d306aad3
|
@ -1,9 +1,9 @@
|
||||||
package procstat
|
package procstat
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/process"
|
"github.com/shirou/gopsutil/process"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ func NewSpecProcessor(
|
||||||
if cmdlineRegex != "" {
|
if cmdlineRegex != "" {
|
||||||
val := CmdlineSubstrings(p, &cmdlineRegex)
|
val := CmdlineSubstrings(p, &cmdlineRegex)
|
||||||
for i, value := range val {
|
for i, value := range val {
|
||||||
tags["cmdline." + strconv.Itoa(i)] = value
|
tags["cmdline."+strconv.Itoa(i)] = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ func NewSpecProcessor(
|
||||||
if parentCmdlineRegex != "" {
|
if parentCmdlineRegex != "" {
|
||||||
val := CmdlineSubstrings(pp, &parentCmdlineRegex)
|
val := CmdlineSubstrings(pp, &parentCmdlineRegex)
|
||||||
for i, value := range val {
|
for i, value := range val {
|
||||||
tags["pcmdline." + strconv.Itoa(i)] = value
|
tags["pcmdline."+strconv.Itoa(i)] = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue