diff options
| author | 2025-02-26 21:10:13 +0100 | |
|---|---|---|
| committer | 2025-03-11 09:40:51 +0100 | |
| commit | 6631c8209d8ce178fbb3578d8d86d33ed1a17f44 (patch) | |
| tree | 039194c5e02f6243e11ad55baf5bb039bf8d3feb /vendor/github.com/KimMachineGun | |
| 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/github.com/KimMachineGun')
| -rw-r--r-- | vendor/github.com/KimMachineGun/automemlimit/memlimit/cgroups.go | 4 |
1 files changed, 1 insertions, 3 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, "") } |
