Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 70b51d1

Browse files
Add the ability to specify how many cores you want
1 parent 73f108f commit 70b51d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import dotenv from 'dotenv';
1414
import fs from 'fs';
1515
import auth from 'http-auth';
1616
dotenv.config();
17-
const numCPUs = os.cpus().length;
17+
const numCPUs = process.env.CPUS || os.cpus().length;
1818
let educationWebsite = fs.readFileSync(join(__dirname, 'education/index.html'));
1919
let loadingPage = fs.readFileSync(join(__dirname, 'education/load.html'));
2020
const blacklisted: string[] = [];

0 commit comments

Comments
 (0)