Skip to content

Commit

Permalink
🐛 修复启动时间错误
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Sep 29, 2021
1 parent 5a05fce commit 8af9b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8af9b1a

Please sign in to comment.