mirror of https://github.com/Chocobozzz/PeerTube
Fix cpu count when cpu info not available
parent
64d9b7abd2
commit
e06e2da187
|
@ -967,7 +967,7 @@ const MEMOIZE_LENGTH = {
|
||||||
VIDEO_DURATION: 200
|
VIDEO_DURATION: 200
|
||||||
}
|
}
|
||||||
|
|
||||||
const totalCPUs = cpus().length
|
const totalCPUs = Math.max(cpus().length, 1)
|
||||||
|
|
||||||
const WORKER_THREADS = {
|
const WORKER_THREADS = {
|
||||||
DOWNLOAD_IMAGE: {
|
DOWNLOAD_IMAGE: {
|
||||||
|
|
Loading…
Reference in New Issue