Skip to content
Snippets Groups Projects
Commit c38ba638 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

SystemInformation: Improve Get(Available/Total)VirtualMemory for windows

Currently kwsys can only return ullTotalVirtual, which is not
a very useful value, as memory allocation will fail if we exhaust
the ullTotalPageFile limit.

For example, on a windows workstation, GlobalMemoryStatusEx
returns:
ullTotalVirtual = 128TB
ullTotalPageFile = 16GB

This commit updates the function Get(Available/Total)VirtualMemory to
use page file size.

Change-Id: I461e5f0a975432c31fc7370efe8467c61fea1bb3
parent dec9c30b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment