mirror of
https://github.com/immich-app/immich.git
synced 2025-11-18 19:42:34 +09:00
fix(server): double counting cores when processor name includes the word "processor" (#10211)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user