Move to typical go project layout, fix golangci-lint warnings, update deps
This commit is contained in:
5
vendor/github.com/lufia/plan9stats/cpu.go
generated
vendored
5
vendor/github.com/lufia/plan9stats/cpu.go
generated
vendored
@@ -178,12 +178,9 @@ func ReadCPUStats(ctx context.Context, opts ...Option) (*CPUStats, error) {
|
||||
var up uint32parser
|
||||
pids := make([]uint32, len(names))
|
||||
for i, s := range names {
|
||||
if s == "trace" {
|
||||
continue
|
||||
}
|
||||
pids[i] = up.Parse(s)
|
||||
}
|
||||
if err := up.err; err != nil {
|
||||
if up.err != nil {
|
||||
return nil, err
|
||||
}
|
||||
sort.Slice(pids, func(i, j int) bool {
|
||||
|
||||
Reference in New Issue
Block a user