From 923e1db3d98cc2b74467ac66f66986085894c6b0 Mon Sep 17 00:00:00 2001 From: Simone Bizzotto Date: Mon, 3 Jun 2024 22:19:56 +0200 Subject: [PATCH] since we run on ubuntu, try to be fair --- assets/templates/to_md.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/templates/to_md.ps1 b/assets/templates/to_md.ps1 index a57d5765..0d79e528 100644 --- a/assets/templates/to_md.ps1 +++ b/assets/templates/to_md.ps1 @@ -273,7 +273,7 @@ Set-DbadocsOSearch -OutputFolder $OutputFolder -ContentFolder $ContentFolder #create all pages try { - $maxConcurrentJobs = (Get-CimInstance -ClassName Win32_Processor -Property NumberOfCores | Measure-Object -Property 'NumberOfCores' -Sum).Sum + [int]$maxConcurrentJobs = [Environment]::ProcessorCount } catch { $maxConcurrentJobs = 4 }