chore: make deps
This commit is contained in:
9
vendor/github.com/prometheus/procfs/proc_status.go
generated
vendored
9
vendor/github.com/prometheus/procfs/proc_status.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Copyright 2018 The Prometheus Authors
|
||||
// Copyright The Prometheus Authors
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@ -16,7 +16,7 @@ package procfs
|
||||
import (
|
||||
"bytes"
|
||||
"math/bits"
|
||||
"sort"
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@ -94,8 +94,7 @@ func (p Proc) NewStatus() (ProcStatus, error) {
|
||||
|
||||
s := ProcStatus{PID: p.PID}
|
||||
|
||||
lines := strings.Split(string(data), "\n")
|
||||
for _, line := range lines {
|
||||
for line := range strings.SplitSeq(string(data), "\n") {
|
||||
if !bytes.Contains([]byte(line), []byte(":")) {
|
||||
continue
|
||||
}
|
||||
@ -222,7 +221,7 @@ func calcCpusAllowedList(cpuString string) []uint64 {
|
||||
|
||||
}
|
||||
|
||||
sort.Slice(g, func(i, j int) bool { return g[i] < g[j] })
|
||||
slices.Sort(g)
|
||||
return g
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user