correct types

This commit is contained in:
Nicholas Orlowsky 2023-03-31 00:58:43 -05:00
parent 7f6472617b
commit a080ea1f29
No known key found for this signature in database
GPG key ID: 58832FD3AC16C706

View file

@ -44,8 +44,8 @@ func NumCPU() int {
}
cgroupVersion := getCgroupVersion()
cpuQuota := -1
cpuPeriod := -1
cpuQuota := int64(-1)
cpuPeriod := int64(-1)
if cgroupVersion == 1 {
cpuQuota = readCgroupFileToInt64(cgroupPath, "cpu.cfs_quota_us")