From 2957c2fd2a1ddc582b784ba7c52bea9f7fd70b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Tue, 5 Dec 2023 17:10:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=AD=A3=E6=8B=BC=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/workhub/founder.go | 2 +- module/worker/recv_stat.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(), }, })