1
mirror of https://github.com/cocktailpeanut/dalai synced 2025-03-24 12:24:22 +01:00

Threads default to system cpu count.

This commit is contained in:
Mathieu Gosbee 2023-03-19 00:38:58 -04:00
parent bec6f6703a
commit 486ecec49a

@ -15,7 +15,7 @@ const start = (port, home) => {
app.set('views', path.resolve(__dirname, "views")) app.set('views', path.resolve(__dirname, "views"))
app.get("/", (req, res) => { app.get("/", (req, res) => {
res.render("index", { res.render("index", {
threads: oc.cpus().length threads: os.cpus().length
}) })
}) })
httpServer.listen(port, () => { httpServer.listen(port, () => {