Set the 'free' memory value to the 'available' memory on windows

pull/901/head
Simon Thoby 5 years ago
parent 6d64cd6d43
commit 3b64944534

@ -42,6 +42,7 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
ret := &VirtualMemoryStat{
Total: memInfo.ullTotalPhys,
Available: memInfo.ullAvailPhys,
Free: memInfo.ullAvailPhys,
UsedPercent: float64(memInfo.dwMemoryLoad),
}

Loading…
Cancel
Save