@cloud-copilot/iam-collect
Version:
Collect IAM information from AWS Accounts
14 lines • 468 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultConcurrency = defaultConcurrency;
const os_1 = require("os");
/**
* Calculate the default concurrency level for downloading.
*
* @returns The default concurrency level based on the number of CPU cores.
*/
function defaultConcurrency() {
const numCpus = (0, os_1.cpus)().length || 1;
return Math.min(50, Math.max(1, numCpus * 2));
}
//# sourceMappingURL=util.js.map