Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 25, 2020
1 parent deb40e5 commit 53db8ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controller/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func SetLoginInfo(title string) *ResponseBody {
func ServerInfo() *ResponseBody {
responseBody := ResponseBody{Msg: "success"}
defer TimeCost(time.Now(), &responseBody)
cpuPercent, _ := cpu.Percent(time.Second, false)
cpuPercent, _ := cpu.Percent(0, false)
vmInfo, _ := mem.VirtualMemory()
smInfo, _ := mem.SwapMemory()
diskInfo, _ := disk.Usage("/")
Expand Down

0 comments on commit 53db8ca

Please sign in to comment.