mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Adding ActiveGoroutines counter to status command
This commit is contained in:
@@ -586,8 +586,9 @@ func (rs *Responder) Status(arg string, reply *map[string]interface{}) (err erro
|
||||
if rs.Bal != nil {
|
||||
response["Raters"] = rs.Bal.GetClientAddresses()
|
||||
}
|
||||
response["memstat"] = utils.SizeFmt(float64(memstats.HeapAlloc), "")
|
||||
response["footprint"] = utils.SizeFmt(float64(memstats.Sys), "")
|
||||
response["MemoryUsage"] = utils.SizeFmt(float64(memstats.HeapAlloc), "")
|
||||
response[utils.ActiveGoroutines] = runtime.NumGoroutine()
|
||||
response["Footprint"] = utils.SizeFmt(float64(memstats.Sys), "")
|
||||
*reply = response
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user