fix(server): double counting cores when processor name includes the word "processor" (#10211)

pull/10203/head
Zack Pollard 2024-06-12 14:49:20 +07:00 committed by GitHub
parent 9dbf5db72e
commit 07156135c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -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"