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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy