Update run.go

pull/92/head
CHN-STUDENT 2021-01-06 11:34:57 +08:00
parent 2b55ea83d2
commit 26cc870a3d
1 changed files with 2 additions and 2 deletions

View File

@ -107,9 +107,9 @@ func (run *Run) StartGetRunInfo() {
hInfo, err := host.Info()
if err != nil {
fmt.Println("[getInfo]get uptime error",err)
clientInfo.Uptime = 0
run.uptime = 0
} else {
clientInfo.Uptime = hInfo.Uptime
run.uptime = hInfo.Uptime
}
//swap 没有造好的轮子,自己加的
swapMemory, err := mem.SwapMemory()