Skip to content

Commit 9bc753c

Browse files
authored
Merge pull request #1294 from ripienaar/report_gomaxprocs
Report GOMAXPROCS
2 parents f0733e6 + 8331b78 commit 9bc753c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/server_info_command.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020-2024 The NATS Authors
1+
// Copyright 2020-2025 The NATS Authors
22
// Licensed under the Apache License, Version 2.0 (the "License");
33
// you may not use this file except in compliance with the License.
44
// You may obtain a copy of the License at
@@ -177,6 +177,9 @@ func (c *SrvInfoCmd) info(_ *fisk.ParseContext) error {
177177

178178
cols.AddSectionTitle("Statistics")
179179
cols.AddRowf("CPU Cores", "%d %.2f%%", varz.Cores, varz.CPU)
180+
if varz.MaxProcs > 0 {
181+
cols.AddRowf("GOMAXPROCS", "%d", varz.MaxProcs)
182+
}
180183
cols.AddRow("Memory", humanize.IBytes(uint64(varz.Mem)))
181184
cols.AddRow("Connections", varz.Connections)
182185
cols.AddRow("Subscriptions", varz.Subscriptions)

0 commit comments

Comments
 (0)