mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix cpu count when cpu info not available
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user