MSP-8974 up deps

This commit is contained in:
chashintv committed 2026-11-20 10:42:39 +03:00
1 parent 0abaaf740f
commit a0aafd93b9
602 files changed
+47724 -13295

No files matched your search

+3 -4
View File
@@ -17,7 +17,7 @@ import (
"fmt"
"strings"
"github.com/prometheus/procfs/internal/util"
"github.com/prometheus/procfs/internal/parsers"
)
func sysctlToPath(sysctl string) string {
@@ -25,12 +25,11 @@ func sysctlToPath(sysctl string) string {
}
func (fs FS) SysctlStrings(sysctl string) ([]string, error) {
value, err := util.SysReadFile(fs.proc.Path("sys", sysctlToPath(sysctl)))
value, err := parsers.SysReadFile(fs.proc.Path("sys", sysctlToPath(sysctl)))
if err != nil {
return nil, err
}
return strings.Fields(value), nil
}
func (fs FS) SysctlInts(sysctl string) ([]int, error) {
@@ -41,7 +40,7 @@ func (fs FS) SysctlInts(sysctl string) ([]int, error) {
values := make([]int, len(fields))
for i, f := range fields {
vp := util.NewValueParser(f)
vp := parsers.NewValueParser(f)
values[i] = vp.Int()
if err := vp.Err(); err != nil {
return nil, fmt.Errorf("%w: field %d in sysctl %s is not a valid int: %w", ErrFileParse, i, sysctl, err)