LingxinMeng hai 1 ano
pai
achega
6be84e7002
Modificáronse 1 ficheiros con 1 adicións e 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
 }