diff --git a/cmd/agent/monitor/monitor.go b/cmd/agent/monitor/monitor.go index 40c76f7773..b330f4ad1c 100644 --- a/cmd/agent/monitor/monitor.go +++ b/cmd/agent/monitor/monitor.go @@ -64,7 +64,7 @@ func GetHost() *model.Host { swapMemTotal = mv.SwapTotal } - cachedBootTime = time.Now().Add(time.Duration(-1 * int64(hi.BootTime*1000))) + cachedBootTime = time.Unix(int64(hi.BootTime), 0) return &model.Host{ Platform: hi.OS,