LingxinMeng hace 1 año
padre
commit
6be84e7002
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 }