LingxinMeng 1 year ago
parent
commit
6be84e7002
1 changed files with 1 additions and 1 deletions
  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
 }