mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
instrumentation: Run system checks for static system info
This JSON object contains processor- and memory-related data, so we must always ensure those checks are run first. Fixes: #27537
This commit is contained in:
1 parent
810e5d3a7a
commit
7867a36fdc
1 file changed
+5
@@ -465,6 +465,11 @@ void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root)
|
||||
info.RunOSCheck();
|
||||
this->ranOSCheck = true;
|
||||
}
|
||||
if (!this->ranSystemChecks) {
|
||||
info.RunCPUCheck();
|
||||
info.RunMemoryCheck();
|
||||
this->ranSystemChecks = true;
|
||||
}
|
||||
Json::Value infoRoot;
|
||||
infoRoot["familyId"] = info.GetFamilyID();
|
||||
infoRoot["hostname"] = info.GetHostname();
|
||||
|
||||
Reference in new issue
Block a user