mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 10:02:24 -05:00
[chore]: Bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 (#2020)
This commit is contained in:
parent
994d5e80d9
commit
b7891bb462
6 changed files with 14 additions and 6 deletions
4
vendor/go.uber.org/automaxprocs/internal/cgroups/cgroups.go
generated
vendored
4
vendor/go.uber.org/automaxprocs/internal/cgroups/cgroups.go
generated
vendored
|
|
@ -110,8 +110,8 @@ func (cg CGroups) CPUQuota() (float64, bool, error) {
|
|||
}
|
||||
|
||||
cfsPeriodUs, err := cpuCGroup.readInt(_cgroupCPUCFSPeriodUsParam)
|
||||
if err != nil {
|
||||
return -1, false, err
|
||||
if defined := cfsPeriodUs > 0; err != nil || !defined {
|
||||
return -1, defined, err
|
||||
}
|
||||
|
||||
return float64(cfsQuotaUs) / float64(cfsPeriodUs), true, nil
|
||||
|
|
|
|||
4
vendor/go.uber.org/automaxprocs/internal/cgroups/cgroups2.go
generated
vendored
4
vendor/go.uber.org/automaxprocs/internal/cgroups/cgroups2.go
generated
vendored
|
|
@ -159,6 +159,10 @@ func (cg *CGroups2) CPUQuota() (float64, bool, error) {
|
|||
if err != nil {
|
||||
return -1, false, err
|
||||
}
|
||||
|
||||
if period == 0 {
|
||||
return -1, false, errors.New("zero value for period is not allowed")
|
||||
}
|
||||
}
|
||||
|
||||
return float64(max) / float64(period), true, nil
|
||||
|
|
|
|||
4
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
4
vendor/go.uber.org/automaxprocs/internal/cgroups/mountpoint.go
generated
vendored
|
|
@ -95,8 +95,12 @@ func NewMountPointFromLine(line string) (*MountPoint, error) {
|
|||
|
||||
for i, field := range fields[_miFieldIDOptionalFields:] {
|
||||
if field == _mountInfoOptionalFieldsSep {
|
||||
// End of optional fields.
|
||||
fsTypeStart := _miFieldIDOptionalFields + i + 1
|
||||
|
||||
// Now we know where the optional fields end, split the line again with a
|
||||
// limit to avoid issues with spaces in super options as present on WSL.
|
||||
fields = strings.SplitN(line, _mountInfoSep, fsTypeStart+_miFieldCountSecondHalf)
|
||||
if len(fields) != fsTypeStart+_miFieldCountSecondHalf {
|
||||
return nil, mountPointFormatInvalidError{line}
|
||||
}
|
||||
|
|
|
|||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
|
@ -827,7 +827,7 @@ go.opentelemetry.io/proto/otlp/collector/trace/v1
|
|||
go.opentelemetry.io/proto/otlp/common/v1
|
||||
go.opentelemetry.io/proto/otlp/resource/v1
|
||||
go.opentelemetry.io/proto/otlp/trace/v1
|
||||
# go.uber.org/automaxprocs v1.5.2
|
||||
# go.uber.org/automaxprocs v1.5.3
|
||||
## explicit; go 1.18
|
||||
go.uber.org/automaxprocs/internal/cgroups
|
||||
go.uber.org/automaxprocs/internal/runtime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue