Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e375169

Browse files
authored
chore: remove CPU usage calculation for hosts on cgroup v1 (#7602)
1 parent ef635f1 commit e375169

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dogfood/main.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ resource "coder_agent" "dev" {
106106
cusage=$(cat /sys/fs/cgroup/cpu.stat | head -n 1 | awk '{ print $2 }')
107107
else
108108
# cgroup v1
109-
cusage=$(cat /sys/fs/cgroup/cpu,cpuacct/cpuacct.usage)
109+
# cusage=$(cat /sys/fs/cgroup/cpu,cpuacct/cpuacct.usage)
110+
echo "Coming Soon!"
111+
exit 0
110112
fi
111113
112114
# get previous usage

0 commit comments

Comments
 (0)