pull/1619/merge
Ray 2 weeks ago committed by GitHub
commit bdf84fceca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -49,7 +49,7 @@ func VirtualMemoryWithContext(_ context.Context) (*VirtualMemoryStat, error) {
Total: memInfo.ullTotalPhys,
Available: memInfo.ullAvailPhys,
Free: memInfo.ullAvailPhys,
UsedPercent: float64(memInfo.dwMemoryLoad),
UsedPercent: float64(memInfo.ullTotalPhys-memInfo.ullAvailPhys) / float64(memInfo.ullTotalPhys) * 100,
}
ret.Used = ret.Total - ret.Available

Loading…
Cancel
Save