correct types
This commit is contained in:
parent
7f6472617b
commit
a080ea1f29
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue