Adding ActiveGoroutines counter to status command

This commit is contained in:
DanB
2017-01-03 13:49:42 +01:00
parent 91bd938870
commit 3bb8b2c13d

View File

@@ -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
}