We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62953da commit d3066b2Copy full SHA for d3066b2
hooks/_common.sh
@@ -206,7 +206,7 @@ function common::get_cpu_num {
206
207
local cpu_quota cpu_period cpu_num
208
209
- local wslinterop_path="/proc/sys/fs/binfmt_misc/WSLInterop"
+ local -r wslinterop_path="/proc/sys/fs/binfmt_misc/WSLInterop"
210
211
if [[ -f /sys/fs/cgroup/cpu/cpu.cfs_quota_us &&
212
(! -f "${wslinterop_path}" && ! -f "${wslinterop_path}-late") ]]; then # WSL has cfs_quota_us, but WSL should be checked as usual Linux host
0 commit comments