mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03:00
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:
committed by
Brad King
parent
92a7104600
commit
fc7ef5028a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user