Fix cpu count when cpu info not available

pull/6126/head
Chocobozzz 2023-12-08 09:13:16 +01:00
parent 64d9b7abd2
commit e06e2da187
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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: {