refs #6053 fix cpus
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-02-27 10:05:46 +01:00
parent 87962a813d
commit 1fe665357f
1 changed files with 1 additions and 3 deletions

View File

@ -2,9 +2,7 @@
// https://jestjs.io/docs/en/configuration.html // https://jestjs.io/docs/en/configuration.html
/* eslint max-len: ["error", { "code": 150 }]*/ /* eslint max-len: ["error", { "code": 150 }]*/
const cpus = require('os').cpus().length; const cpus = require('os').cpus().length;
console.log('cpus: ', cpus); const maxCpus = Math.floor(cpus * 0.45);
const maxCpus = Math.floor(cpus / 4);
console.log('maxCpus: ', maxCpus);
module.exports = { module.exports = {
name: 'front end', name: 'front end',