From 07156135c2e5043a86bf7b392093dae1298a099c Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Wed, 12 Jun 2024 14:49:20 +0100 Subject: [PATCH] fix(server): double counting cores when processor name includes the word "processor" (#10211) --- docker/scripts/get-cpus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/scripts/get-cpus.sh b/docker/scripts/get-cpus.sh index 7e5ca78a1b..fe9e2ac611 100755 --- a/docker/scripts/get-cpus.sh +++ b/docker/scripts/get-cpus.sh @@ -43,7 +43,7 @@ if [ -n "${quota:-}" ] && [ -n "${period:-}" ]; then cpus=1 fi else - cpus=$(grep -c processor /proc/cpuinfo) + cpus=$(grep -c ^processor /proc/cpuinfo) fi echo "$cpus"