🐛 修复 WebSSH 连接断开后遗留僵尸进程

This commit is contained in:
naiba committed 2021-09-30 12:01:01 +08:00
1 parent 78793cba3f
commit 5d5ffe66b9
4 files changed
+49 -11

No files matched your search

+3 -1
View File
@@ -64,7 +64,9 @@ func GetHost() *model.Host {
swapMemTotal = mv.SwapTotal
}
cachedBootTime = time.Unix(int64(hi.BootTime), 0)
if cachedBootTime.IsZero() {
cachedBootTime = time.Unix(int64(hi.BootTime), 0)
}
return &model.Host{
Platform: hi.OS,