Merge pull request #901 from nightmared/expose-available-memory-as-free-win

Set the 'free' memory value to the 'available' memory on windows
pull/909/head
shirou 5 years ago committed by GitHub
commit 4e6138ae09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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