diff --git a/pkg/util/runtime/cpu_linux.go b/pkg/util/runtime/cpu_linux.go index d6ea87ad6..5228c93a2 100644 --- a/pkg/util/runtime/cpu_linux.go +++ b/pkg/util/runtime/cpu_linux.go @@ -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")