mirror of
https://github.com/cocktailpeanut/dalai
synced 2024-11-23 04:16:53 +01:00
Threads default to system cpu count.
This commit is contained in:
parent
bec6f6703a
commit
486ecec49a
@ -15,7 +15,7 @@ const start = (port, home) => {
|
||||
app.set('views', path.resolve(__dirname, "views"))
|
||||
app.get("/", (req, res) => {
|
||||
res.render("index", {
|
||||
threads: oc.cpus().length
|
||||
threads: os.cpus().length
|
||||
})
|
||||
})
|
||||
httpServer.listen(port, () => {
|
||||
|
Loading…
Reference in New Issue
Block a user