From c6708193911320c772da12f85cddc999535f7396 Mon Sep 17 00:00:00 2001 From: Akkia Date: Sun, 25 Dec 2022 21:26:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E4=B8=8B=E5=90=AF=E5=8A=A8=E6=97=B6=E9=97=B4=E9=94=81=E5=AE=9A?= =?UTF-8?q?=E5=9C=A81970=E5=B9=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/monitor/monitor.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/agent/monitor/monitor.go b/cmd/agent/monitor/monitor.go index 78ea848..f4b28ca 100644 --- a/cmd/agent/monitor/monitor.go +++ b/cmd/agent/monitor/monitor.go @@ -66,9 +66,7 @@ func GetHost(agentConfig *model.AgentConfig) *model.Host { swapMemTotal = mv.SwapTotal } - if cachedBootTime.IsZero() { - cachedBootTime = time.Unix(int64(hi.BootTime), 0) - } + cachedBootTime = time.Unix(int64(hi.BootTime), 0) return &model.Host{ Platform: hi.Platform,