后台功能优化

This commit is contained in:
hahwu 2025-02-25 12:28:49 +08:00
parent 732d732027
commit ede1b50b2c

View File

@ -94,7 +94,7 @@ func ReqServerInfo(args []interface{}) error {
res["StartTime"] = G_GameLogicPtr.GetStartTime()
var m runtime.MemStats
runtime.ReadMemStats(&m)
res["TotalAlloc"] = fmt.Sprintf("%dM", m.TotalAlloc/1024)
res["TotalAlloc"] = fmt.Sprintf("%dM", m.TotalAlloc/1024/1024)
// 2. 获取系统内存使用信息
vmStat, err := mem.VirtualMemory()
if err == nil {