mirror of
https://github.com/nezhahq/nezha.git
synced 2025-02-02 09:38:13 -05:00
🐛 修复启动时间错误
This commit is contained in:
parent
5a05fce7ed
commit
8af9b1ab18
@ -64,7 +64,7 @@ func GetHost() *model.Host {
|
|||||||
swapMemTotal = mv.SwapTotal
|
swapMemTotal = mv.SwapTotal
|
||||||
}
|
}
|
||||||
|
|
||||||
cachedBootTime = time.Now().Add(time.Duration(-1 * int64(hi.BootTime*1000)))
|
cachedBootTime = time.Unix(int64(hi.BootTime), 0)
|
||||||
|
|
||||||
return &model.Host{
|
return &model.Host{
|
||||||
Platform: hi.OS,
|
Platform: hi.OS,
|
||||||
|
Loading…
Reference in New Issue
Block a user