Skip to content

Commit 85675c1

Browse files
matifalijohnstcn
andauthored
Update dogfood/main.tf
Co-authored-by: Cian Johnston <cian@coder.com>
1 parent 2764d30 commit 85675c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dogfood/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ resource "coder_agent" "dev" {
105105
ncores=$(nproc)
106106
cusage_p=$(cat /tmp/cusage || echo 0)
107107
# check if we are in cgroup v2 or v1
108-
if [ -d /sys/fs/cgroup/cpu.stat ]; then
108+
if [ -e /sys/fs/cgroup/cpu.stat ]; then
109109
# cgroup v2
110110
cusage=$(cat /sys/fs/cgroup/cpu.stat | head -n 1 | awk '{ print $2 }')
111111
else

0 commit comments

Comments
 (0)