Fix cpu count when cpu info not available

This commit is contained in:
Chocobozzz
2023-12-08 09:13:16 +01:00
parent 64d9b7abd2
commit e06e2da187

View File

@@ -967,7 +967,7 @@ const MEMOIZE_LENGTH = {
VIDEO_DURATION: 200
}
const totalCPUs = cpus().length
const totalCPUs = Math.max(cpus().length, 1)
const WORKER_THREADS = {
DOWNLOAD_IMAGE: {