Skip to content

Commit

Permalink
update default value for period when not set
Browse files Browse the repository at this point in the history
  • Loading branch information
nickorlow committed Jul 16, 2023
1 parent ad1fb03 commit a9f9793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/runtime/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a9f9793

Please sign in to comment.