mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -634,7 +635,7 @@ func (s *Server) updateServerUsage(v *ServerStats) {
|
||||
defer s.mu.Lock()
|
||||
var vss int64
|
||||
pse.ProcUsage(&v.CPU, &v.Mem, &vss)
|
||||
v.Cores = numCores
|
||||
v.Cores = runtime.NumCPU()
|
||||
}
|
||||
|
||||
// Generate a route stat for our statz update.
|
||||
|
||||
Reference in New Issue
Block a user