mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 03:22:24 -06: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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue