mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix cpu count when process name includes the word processor (#11911)
This commit is contained in:
parent
6978140492
commit
e3c8901549
@ -44,7 +44,7 @@ function get_cpus() {
|
|||||||
cpus=1
|
cpus=1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
cpus=$(grep -c processor /proc/cpuinfo)
|
cpus=$(grep -c ^processor /proc/cpuinfo)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf '%s' "$cpus"
|
printf '%s' "$cpus"
|
||||||
|
Loading…
Reference in New Issue
Block a user