LingxinMeng 1 년 전
부모
커밋
6be84e7002
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/util/u_resource.go

+ 1 - 1
common/util/u_resource.go

@@ -68,7 +68,7 @@ func GetCpuPercent() float64 {
 
 // 内存总占用率
 func GetMemoryPercent() float64 {
-	memory, _ := mem.SwapMemory()
+	memory, _ := mem.VirtualMemory()
 	return memory.UsedPercent
 }