diff options
| author | 2025-02-26 21:10:13 +0100 | |
|---|---|---|
| committer | 2025-03-11 09:40:51 +0100 | |
| commit | 6631c8209d8ce178fbb3578d8d86d33ed1a17f44 (patch) | |
| tree | 039194c5e02f6243e11ad55baf5bb039bf8d3feb /vendor | |
| parent | [chore]: Bump golang.org/x/crypto from 0.33.0 to 0.34.0 (#3824) (diff) | |
| download | gotosocial-6631c8209d8ce178fbb3578d8d86d33ed1a17f44.tar.xz | |
[chore] Update KimMachineGun/automemlimit (#3841)
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go | 4 | ||||
| -rw-r--r-- | vendor/modules.txt | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go b/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go index 809cc6d0d..73a57c3eb 100644 --- a/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go +++ b/vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go @@ -269,11 +269,9 @@ func parseMountInfoLine(line string) (mountInfo, error) { return mountInfo{}, fmt.Errorf("invalid separator") } - fields1 := strings.Split(fieldss[0], " ") + fields1 := strings.SplitN(fieldss[0], " ", 7) if len(fields1) < 6 { return mountInfo{}, fmt.Errorf("not enough fields before separator: %v", fields1) - } else if len(fields1) > 7 { - return mountInfo{}, fmt.Errorf("too many fields before separator: %v", fields1) } else if len(fields1) == 6 { fields1 = append(fields1, "") } diff --git a/vendor/modules.txt b/vendor/modules.txt index eec809a56..e8a4b014a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -72,7 +72,7 @@ codeberg.org/superseriousbusiness/exif-terminator # github.com/DmitriyVTitov/size v1.5.0 ## explicit; go 1.14 github.com/DmitriyVTitov/size -# github.com/KimMachineGun/automemlimit v0.7.0 +# github.com/KimMachineGun/automemlimit v0.7.1 ## explicit; go 1.22.0 github.com/KimMachineGun/automemlimit/memlimit # github.com/Masterminds/goutils v1.1.1 |
