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:
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, () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user