后台功能优化
This commit is contained in:
parent
732d732027
commit
ede1b50b2c
@ -94,7 +94,7 @@ func ReqServerInfo(args []interface{}) error {
|
|||||||
res["StartTime"] = G_GameLogicPtr.GetStartTime()
|
res["StartTime"] = G_GameLogicPtr.GetStartTime()
|
||||||
var m runtime.MemStats
|
var m runtime.MemStats
|
||||||
runtime.ReadMemStats(&m)
|
runtime.ReadMemStats(&m)
|
||||||
res["TotalAlloc"] = fmt.Sprintf("%dM", m.TotalAlloc/1024)
|
res["TotalAlloc"] = fmt.Sprintf("%dM", m.TotalAlloc/1024/1024)
|
||||||
// 2. 获取系统内存使用信息
|
// 2. 获取系统内存使用信息
|
||||||
vmStat, err := mem.VirtualMemory()
|
vmStat, err := mem.VirtualMemory()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user