diff --git a/api/workhub/founder.go b/api/workhub/founder.go index 00c72a7b..7748b12d 100644 --- a/api/workhub/founder.go +++ b/api/workhub/founder.go @@ -20,7 +20,7 @@ func host(c *gin.Context) { c.Set("Payload", gin.H{ "Stat": psutil.Detail(rq.WithAddr), - "MemStats": psutil.GoMemory(), + "MemStat": psutil.GoMemory(), "NumGoroutine": runtime.NumGoroutine(), }) diff --git a/module/worker/recv_stat.go b/module/worker/recv_stat.go index c0188abc..6c1e164d 100644 --- a/module/worker/recv_stat.go +++ b/module/worker/recv_stat.go @@ -20,7 +20,7 @@ func (pod *RecvPod) Stat(rq *socket.PlainData) error { Success: true, Payload: map[string]any{ "Stat": psutil.Detail(true), - "MemStats": psutil.GoMemory(), + "MemStat": psutil.GoMemory(), "NumGoroutine": runtime.NumGoroutine(), }, })