sk-matrix-project/app/wails/lib/system/memory.go

14 lines
241 B
Go
Raw Normal View History

2023-07-09 23:04:17 +08:00
package system
import "github.com/shirou/gopsutil/mem"
func GetVirtualMemory() *mem.VirtualMemoryStat {
stat, _ := mem.VirtualMemory()
return stat
}
func GetSwapMemory() *mem.SwapMemoryStat {
stat, _ := mem.SwapMemory()
return stat
}