[chore]: Bump go.uber.org/automaxprocs from 1.5.2 to 1.5.3 (#2020)

This commit is contained in:
dependabot[bot] 2023-07-24 10:13:31 +00:00 committed by GitHub
commit b7891bb462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 6 deletions

View file

@ -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