KWSys 2025-10-20 (a3f3d4de)

Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit a3f3d4de0a9379d3f10c2232d42d42bf4db8284b (master).

Upstream Shortlog
-----------------

Hanna Rusakovich (1):
      64c27dfd SystemInformation: Fix total and available virtual memory for Windows
This commit is contained in:
KWSys Upstream
2025-10-20 13:50:56 -04:00
committed by Brad King
parent 92a7104600
commit fc7ef5028a
+4
View File
@@ -4131,6 +4131,10 @@ bool SystemInformationImplementation::QueryWindowsMemory()
this->TotalPhysicalMemory = tp >> 10 >> 10;
this->AvailableVirtualMemory = av >> 10 >> 10;
this->AvailablePhysicalMemory = ap >> 10 >> 10;
// The virtual WinAPI memory contains both physical memory and page file.
this->TotalVirtualMemory -= this->TotalPhysicalMemory;
this->AvailableVirtualMemory -= this->AvailablePhysicalMemory;
return true;
#else
return false;