update default value for period when not set

This commit is contained in:
Nicholas Orlowsky 2023-07-16 13:18:32 -04:00
parent ad1fb03f00
commit a9f9793a1f
No known key found for this signature in database
GPG key ID: 58832FD3AC16C706

View file

@ -93,7 +93,7 @@ func readCgroup2FileToInt64Tuple(cgroupFile string) (int64, int64) {
}
if len(values) == 1 {
return cpuQuota, 1
return cpuQuota, 100000
}
cpuPeriod, err := strconv.ParseInt(values[1], 10, 64)