summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-05 12:20:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-02-05 12:20:34 (GMT)
commit9ddbf4c6e65b17b76dd6ccca72c5b3a0b7cbb1ad (patch)
tree93e5eed52d24c6e8ff4bd0c85808857f8af1861c /Source
parent762a41fd19dff29de41009bfe7bcf69917e5ffb0 (diff)
parent8372c054729984a76e3e619b4c28865006d905d0 (diff)
downloadCMake-9ddbf4c6e65b17b76dd6ccca72c5b3a0b7cbb1ad.zip
CMake-9ddbf4c6e65b17b76dd6ccca72c5b3a0b7cbb1ad.tar.gz
CMake-9ddbf4c6e65b17b76dd6ccca72c5b3a0b7cbb1ad.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2019-02-05 (65802a20)
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 6c12355..f323efc 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -4424,7 +4424,8 @@ bool SystemInformationImplementation::ParseSysCtl()
&count) == KERN_SUCCESS) {
len = sizeof(value);
err = sysctlbyname("hw.pagesize", &value, &len, KWSYS_NULLPTR, 0);
- int64_t available_memory = vmstat.free_count * value;
+ int64_t available_memory =
+ (vmstat.free_count + vmstat.inactive_count) * value;
this->AvailablePhysicalMemory =
static_cast<size_t>(available_memory / 1048576);
}