1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-28 05:18:38 +02:00

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

This commit is contained in:
Zack Pollard
2024-06-12 14:49:20 +01:00
committed by GitHub
parent 9dbf5db72e
commit 07156135c2

View File

@ -43,7 +43,7 @@ if [ -n "${quota:-}" ] && [ -n "${period:-}" ]; then
cpus=1 cpus=1
fi fi
else else
cpus=$(grep -c processor /proc/cpuinfo) cpus=$(grep -c ^processor /proc/cpuinfo)
fi fi
echo "$cpus" echo "$cpus"