X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fpool.ts;h=54b437ab31b2f1d7785439c5ce9007167e554331;hb=782299f8cd972f86b51c7d92c528d44bcd2b1204;hp=b6bb4da3427a93132842e5953cd6fa858d52408d;hpb=f65efa796405c785a1ab5e646e30fc27418a6151;p=poolifier.git diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index b6bb4da3..54b437ab 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -20,7 +20,7 @@ export const fixedPool = new FixedThreadPool>( ) export const dynamicPool = new DynamicThreadPool>( - availableParallelism() / 2, + Math.floor(availableParallelism() / 2), availableParallelism(), join(__dirname, 'worker.js'), {