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

This commit is contained in:
Simon Thoby 2020-07-09 16:57:23 +02:00
parent 6d64cd6d43
commit 3b64944534
1 changed files with 1 additions and 0 deletions

View File

@ -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),
}