mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
📀 Cores should be Threads
This commit is contained in:
parent
c84ae11e26
commit
35fdd375cd
4
app.go
4
app.go
@ -683,7 +683,7 @@ func (app *App) startupMessage(addr string, tls bool, pids string) {
|
|||||||
routesLen = len(app.Routes())
|
routesLen = len(app.Routes())
|
||||||
osName = utils.ToUpper(runtime.GOOS)
|
osName = utils.ToUpper(runtime.GOOS)
|
||||||
memTotal = utils.ByteSize(utils.MemoryTotal())
|
memTotal = utils.ByteSize(utils.MemoryTotal())
|
||||||
cpuCores = runtime.NumCPU()
|
cpuThreads = runtime.NumCPU()
|
||||||
pid = os.Getpid()
|
pid = os.Getpid()
|
||||||
)
|
)
|
||||||
if host == "" {
|
if host == "" {
|
||||||
@ -709,7 +709,7 @@ func (app *App) startupMessage(addr string, tls bool, pids string) {
|
|||||||
// Build startup banner
|
// Build startup banner
|
||||||
fmt.Fprintf(out, logo, cBlack, cBlack,
|
fmt.Fprintf(out, logo, cBlack, cBlack,
|
||||||
cCyan, cBlack, fmt.Sprintf(" HOST %s\tOS %s", cyan(host), cyan(osName)),
|
cCyan, cBlack, fmt.Sprintf(" HOST %s\tOS %s", cyan(host), cyan(osName)),
|
||||||
cCyan, cBlack, fmt.Sprintf(" PORT %s\tCORES %s", cyan(port), cyan(cpuCores)),
|
cCyan, cBlack, fmt.Sprintf(" PORT %s\tTHREADS %s", cyan(port), cyan(cpuThreads)),
|
||||||
cCyan, cBlack, fmt.Sprintf(" TLS %s\tMEM %s", cyan(tlsStr), cyan(memTotal)),
|
cCyan, cBlack, fmt.Sprintf(" TLS %s\tMEM %s", cyan(tlsStr), cyan(memTotal)),
|
||||||
cBlack, cyan(Version), fmt.Sprintf(" ROUTES %s\t\t\t PID %s%s%s\n", cyan(routesLen), cyan(pid), pids, cReset),
|
cBlack, cyan(Version), fmt.Sprintf(" ROUTES %s\t\t\t PID %s%s%s\n", cyan(routesLen), cyan(pid), pids, cReset),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user